- [% 'Billing Address' | $T8 %]
- [% 'Shipping Address' | $T8 %]
- - Ansprechpartner
- - [% 'Lieferungen' | $T8 %]
+ - [% 'Contacts' | $T8 %]
+[%- IF id %]
+ - [% 'Supplies' | $T8 %]
+[%- END %]
- [% 'Notes' | $T8 %]
[%- IF CUSTOM_VARIABLES.size %]
- [% 'Custom Variables' | $T8 %]
@@ -140,8 +145,22 @@
- [% 'Homepage' | $T8 %] |
- |
+
+ [% IF homepage %][% 'Homepage' | $T8 %]
+ [% ELSE %][% 'Homepage' | $T8 %]
+ [% END %]
+ |
+ |
+
+
+
+ [% 'Username' | $T8 %] |
+ |
+
+
+
+ [% 'Password' | $T8 %] |
+ |
@@ -170,7 +189,7 @@
|
[% 'sales tax identification number' | $T8 %] |
- |
+ |
[%- IF is_customer %]
[% 'our vendor number at customer' | $T8 %] |
|
@@ -194,17 +213,12 @@
|
[% 'BIC' | $T8 %] |
|
+ [%- IF ALL_CURRENCIES.size %]
+ [% 'Currency' | $T8 %] |
+ [% L.select_tag('currency', L.options_for_select(ALL_CURRENCIES, default=currency, with_empty=1)) %] |
+ [%- END %]
- [%- IF conf_vertreter %]
-
- [% 'Username' | $T8 %] |
- |
- [% 'Password' | $T8 %] |
- |
-
- [%- END %]
-
[% UNLESS conf_vertreter %]
[% IF is_customer %][% 'Type of Customer' | $T8 %][% ELSE %][% 'Type of Vendor' | $T8 %][%- END %] |
@@ -222,6 +236,7 @@
[%- INCLUDE generic/multibox.html
name = 'language_id',
+ default = default_language_id,
DATA = languages,
show_empty = 1,
id_key = 'id',
@@ -255,30 +270,23 @@
|
[%- INCLUDE generic/multibox.html
name = 'taxzone_id',
+ id = 'taxzone_id',
DATA = ALL_TAXZONES,
- show_empty = 1,
+ show_empty = 0,
id_key = 'id',
label_key = 'description',
-%]
|
[%- IF is_customer && !conf_vertreter %]
[% 'Salesman' | $T8 %] |
-
- [%- INCLUDE generic/multibox.html
- name = 'salesman_id',
- DATA = ALL_SALESMEN,
- show_empty = 1,
- id_key = 'id',
- label_sub = 'salesman_label',
- -%]
- |
+ [% L.select_tag('salesman_id', L.options_for_select(ALL_SALESMEN, default=salesman_id, show_empty=1, title='safe_name')) %] |
[%- END %]
- [% 'Notes' | $T8 %] |
+ [% 'Internal Notes' | $T8 %] |
@@ -290,241 +298,20 @@
-
-
-
- [% 'Shipping Address' | $T8 %] |
-
- [%- INCLUDE generic/multibox.html
- name = 'shipto_id',
- id = 'shipto_id',
- DATA = SHIPTO,
- onChange = "get_shipto(['shipto_id__' + this.value], ['shiptoname','shiptodepartment_1', 'shiptodepartment_2','shiptostreet','shiptozipcode','shiptocity','shiptocountry','shiptocontact','shiptophone','shiptofax','shiptoemail',enable_delete_shipto,set_gender])",
- id_key = 'shipto_id',
- label_sub = 'shipto_label',
- label_key = 'shipto_label',
- -%]
- |
-
-
-
- [% 'Company Name' | $T8 %] |
- |
-
-
-
- [% 'Abteilung' | $T8 %] |
-
-
-
- |
-
-
-
- [% 'Street' | $T8 %] |
- |
-
-
-
- [% 'Zipcode' | $T8 %]/[% 'City' | $T8 %] |
-
-
-
- |
-
-
-
- [% 'Country' | $T8 %] |
- |
-
-
-
- [% 'Contact' | $T8 %] |
- |
-
-
-
- [% 'Phone' | $T8 %] |
- |
-
-
-
- [% 'Fax' | $T8 %] |
- |
-
-
-
- [% 'E-mail' | $T8 %] |
- |
-
-
-
- |
-
-
- |
-
-
-
-
-
+ [% INCLUDE 'ct/_shipto.html' %]
-
-
-
- [% 'Ansprechpartner' | $T8 %] |
-
- [%- INCLUDE generic/multibox.html
- name = 'cp_id',
- id = 'cp_id',
- DATA = CONTACTS,
- onChange = "on_contact_changed()",
- id_key = 'cp_id',
- label_sub = 'contacts_label',
- -%]
- |
-
-
-
- [% 'Gender' | $T8 %] |
-
-
- |
-
-
-
-
- [% 'Title' | $T8 %] |
-
-
- [%- INCLUDE generic/multibox.html
- name = 'selected_cp_title',
- id = 'selected_cp_title',
- DATA = MB_TITLES,
- show_empty = 1,
- id_key = 'id',
- label_key = 'description',
- -%]
- |
-
-
-
- [% 'Department' | $T8 %] |
-
-
- [%- INCLUDE generic/multibox.html
- name = 'selected_cp_abteilung',
- id = 'selected_cp_abteilung',
- DATA = MB_DEPARTMENT,
- show_empty = 1,
- id_key = 'id',
- label_key = 'description',
- -%]
- |
-
-
-
- [% 'Given Name' | $T8 %] |
- |
-
-
-
- [% 'Name' | $T8 %] |
- |
-
-
-
- [% 'Phone1' | $T8 %] |
- |
-
-
-
- [% 'Phone2' | $T8 %] |
- |
-
-
-
- [% 'Fax' | $T8 %] |
- |
-
-
-
- [% 'Mobile1' | $T8 %] |
- |
-
-
-
- [% 'Mobile2' | $T8 %] |
- |
-
-
-
- [% 'Sat. Phone' | $T8 %] |
- |
-
-
-
- [% 'Sat. Fax' | $T8 %] |
- |
-
-
-
- [% 'Project' | $T8 %] |
- |
-
-
-
- [% 'E-mail' | $T8 %] |
- |
-
-
-
- [% 'Private Phone' | $T8 %] |
- |
-
-
-
- [% 'Private E-mail' | $T8 %] |
- |
-
-
-
- [% 'Birthday' | $T8 %] |
- |
-
-
-
-
|
-
-
-
- [% 'Bcc' | $T8 %] |
- |
-
-
-
-
-
+ [% INCLUDE 'ct/_contact.html' %]
[% 'Shipping Address' | $T8 %] |
-
- [%- INCLUDE generic/multibox.html
- name = 'delivery_id',
- id = 'delivery_id',
- DATA = SHIPTO,
- onChange = "get_delivery(['shipto_id__' + this.value, 'from__' + from.value, 'to__' + to.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])",
- id_key = 'shipto_id',
- label_sub = 'shipto_label',
- -%]
+ |
+ [% L.select_tag('delivery_id', L.options_for_select(SHIPTO_ALL, title_sub => \shipto_label, with_empty => 1),
+ onchange => "\$('#delivery').load('ct.pl?action=get_delivery&id=' + \$('#cvid').attr('value') + '&db=' + \$('#db').attr('value') + '&shipto_id=' + this.value)") %]
|
@@ -609,13 +396,7 @@
[% 'for' | $T8 %]
-
+ [% L.select_tag('FU_created_for_user', L.options_for_select(ALL_EMPLOYEES, default=(FU_created_for_user ? FU_created_for_user : USER.id), title='safe_name')) %]
@@ -652,7 +433,6 @@
-