Skip to content

Commit baec2b2

Browse files
author
filip
committed
Adding company_id attribute for client.
(It's used in several countries to identify company)
1 parent 911d45c commit baec2b2

File tree

6 files changed

+21
-0
lines changed

6 files changed

+21
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE client ADD COLUMN company_id varchar(30);
2+

install/sql/ispconfig3.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,6 +1649,8 @@ CREATE TABLE `help_faq` (
16491649

16501650
INSERT INTO `help_faq` VALUES (1,1,0,'I\'d like to know ...','Yes, of course.',1,1,'riud','riud','r');
16511651

1652+
ALTER TABLE client ADD COLUMN company_id varchar(30);
1653+
16521654
-- --------------------------------------------------------
16531655

16541656
SET FOREIGN_KEY_CHECKS = 1;

interface/web/client/form/client.tform.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,17 @@
305305
'rows' => '',
306306
'cols' => ''
307307
),
308+
'company_id' => array (
309+
'datatype' => 'VARCHAR',
310+
'formtype' => 'TEXT',
311+
'default' => '',
312+
'value' => '',
313+
'separator' => '',
314+
'width' => '30',
315+
'maxlength' => '20',
316+
'rows' => '',
317+
'cols' => ''
318+
),
308319
'notes' => array (
309320
'datatype' => 'TEXT',
310321
'formtype' => 'TEXTAREA',

interface/web/client/lib/lang/cz_client.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,5 @@ $wb['limit_webdav_user_error_notint'] = 'The webdav user limit must be a number.
9898
$wb['customer_no_txt'] = 'Customer No.';
9999
$wb['vat_id_txt'] = 'VAT ID';
100100
$wb['required_fields_txt'] = '* Required fields';
101+
$wb['company_id_txt'] = 'IČO';
101102
?>

interface/web/client/lib/lang/en_client.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,5 @@ $wb["limit_trafficquota_error_notint"] = 'Traffic Quota must be a number.';
101101
$wb["customer_no_txt"] = 'Customer No.';
102102
$wb["vat_id_txt"] = 'VAT ID';
103103
$wb["required_fields_txt"] = '* Required fields';
104+
$wb['company_id_txt'] = 'Company/Entrepreneur ID';
104105
?>

interface/web/client/templates/client_edit_address.htm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ <h2><tmpl_var name="list_head_txt"></h2>
9292
<label for="vat_id">{tmpl_var name='vat_id_txt'}</label>
9393
<input name="vat_id" id="vat_id" value="{tmpl_var name='vat_id'}" size="30" maxlength="255" type="text" class="textInput" />
9494
</div>
95+
<div class="ctrlHolder">
96+
<label for="company_id">{tmpl_var name='company_id_txt'}</label>
97+
<input name="company_id" id="company_id" value="{tmpl_var name='company_id'}" size="30" maxlength="255" type="text" class="textInput" />
98+
</div>
9599
<div class="ctrlHolder">
96100
<label for="notes">{tmpl_var name='notes_txt'}</label>
97101
<textarea name="notes" id="notes" rows='10' cols='30'>{tmpl_var name='notes'}</textarea>

0 commit comments

Comments
 (0)