Skip to content
Snippets Groups Projects
Commit baec2b27 authored by filip's avatar filip
Browse files

Adding company_id attribute for client.

(It's used in several countries to identify company)
parent 911d45c6
No related branches found
No related tags found
No related merge requests found
ALTER TABLE client ADD COLUMN company_id varchar(30);
...@@ -1649,6 +1649,8 @@ CREATE TABLE `help_faq` ( ...@@ -1649,6 +1649,8 @@ CREATE TABLE `help_faq` (
INSERT INTO `help_faq` VALUES (1,1,0,'I\'d like to know ...','Yes, of course.',1,1,'riud','riud','r'); INSERT INTO `help_faq` VALUES (1,1,0,'I\'d like to know ...','Yes, of course.',1,1,'riud','riud','r');
ALTER TABLE client ADD COLUMN company_id varchar(30);
-- -------------------------------------------------------- -- --------------------------------------------------------
SET FOREIGN_KEY_CHECKS = 1; SET FOREIGN_KEY_CHECKS = 1;
...@@ -305,6 +305,17 @@ $form["tabs"]['address'] = array ( ...@@ -305,6 +305,17 @@ $form["tabs"]['address'] = array (
'rows' => '', 'rows' => '',
'cols' => '' 'cols' => ''
), ),
'company_id' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'value' => '',
'separator' => '',
'width' => '30',
'maxlength' => '20',
'rows' => '',
'cols' => ''
),
'notes' => array ( 'notes' => array (
'datatype' => 'TEXT', 'datatype' => 'TEXT',
'formtype' => 'TEXTAREA', 'formtype' => 'TEXTAREA',
......
...@@ -98,4 +98,5 @@ $wb['limit_webdav_user_error_notint'] = 'The webdav user limit must be a number. ...@@ -98,4 +98,5 @@ $wb['limit_webdav_user_error_notint'] = 'The webdav user limit must be a number.
$wb['customer_no_txt'] = 'Customer No.'; $wb['customer_no_txt'] = 'Customer No.';
$wb['vat_id_txt'] = 'VAT ID'; $wb['vat_id_txt'] = 'VAT ID';
$wb['required_fields_txt'] = '* Required fields'; $wb['required_fields_txt'] = '* Required fields';
$wb['company_id_txt'] = 'IČO';
?> ?>
...@@ -101,4 +101,5 @@ $wb["limit_trafficquota_error_notint"] = 'Traffic Quota must be a number.'; ...@@ -101,4 +101,5 @@ $wb["limit_trafficquota_error_notint"] = 'Traffic Quota must be a number.';
$wb["customer_no_txt"] = 'Customer No.'; $wb["customer_no_txt"] = 'Customer No.';
$wb["vat_id_txt"] = 'VAT ID'; $wb["vat_id_txt"] = 'VAT ID';
$wb["required_fields_txt"] = '* Required fields'; $wb["required_fields_txt"] = '* Required fields';
$wb['company_id_txt'] = 'Company/Entrepreneur ID';
?> ?>
...@@ -92,6 +92,10 @@ ...@@ -92,6 +92,10 @@
<label for="vat_id">{tmpl_var name='vat_id_txt'}</label> <label for="vat_id">{tmpl_var name='vat_id_txt'}</label>
<input name="vat_id" id="vat_id" value="{tmpl_var name='vat_id'}" size="30" maxlength="255" type="text" class="textInput" /> <input name="vat_id" id="vat_id" value="{tmpl_var name='vat_id'}" size="30" maxlength="255" type="text" class="textInput" />
</div> </div>
<div class="ctrlHolder">
<label for="company_id">{tmpl_var name='company_id_txt'}</label>
<input name="company_id" id="company_id" value="{tmpl_var name='company_id'}" size="30" maxlength="255" type="text" class="textInput" />
</div>
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="notes">{tmpl_var name='notes_txt'}</label> <label for="notes">{tmpl_var name='notes_txt'}</label>
<textarea name="notes" id="notes" rows='10' cols='30'>{tmpl_var name='notes'}</textarea> <textarea name="notes" id="notes" rows='10' cols='30'>{tmpl_var name='notes'}</textarea>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment