@@ -25,17 +32,47 @@
- [% vc %]
-[%- IF contact %]
+ [% IF vc == 'customer' %]Kunde[% ELSE %]Lieferant[% END %] |
+
+ [%- INCLUDE 'generic/multibox.html'
+ name = vc,
+ style = 'width: 250px',
+ DATA = vc == 'customer' ? ALL_CUSTOMERS : ALL_VENDORS,
+ id_sub = 'vc_keys',
+ label_key = 'name',
+ select = vc_select,
+ limit = vclimit,
+ onChange = "document.getElementById('update_button').click();" -%]
+
+ |
+
+[%- IF ALL_CONTACTS.size %]
Ansprechpartner |
- [% contact %] |
+
+ [%- INCLUDE 'generic/multibox.html'
+ name = 'cp_id',
+ style = 'width: 250px',
+ DATA = ALL_CONTACTS,
+ id_key = 'cp_id',
+ label_sub = 'contact_labels',
+ show_empty = 1 -%]
+ |
[%- END %]
-[%- IF shipto %]
+[%- IF ALL_SHIPTO %]
Lieferadresse |
- [% shipto %] |
+
+ [%- INCLUDE 'generic/multibox.html'
+ name = 'shipto_id',
+ style = 'width: 250px',
+ DATA = ALL_SHIPTO,
+ id_key = 'shipto_id',
+ label_sub = 'shipto_labels',
+ show_empty = 1,
+ onChange = "document.getElementById('update_button').click();" -%]
+ |
[%- END %]
[%- IF is_order %]
@@ -47,21 +84,28 @@
[%- IF business %]
[% business_label %] |
- [% business %]; Rabatt [% LxERP.format_percent(tradediscount) %] % |
+ [% HTML.escape(business) %]; Rabatt [% LxERP.format_percent(tradediscount) %] % |
[%- END %]
[%- IF max_dunning_level %]
höchste Mahnstufe: |
- [% max_dunning_level %];
+ [% HTML.escape(max_dunning_level) %];
gemahnter Betrag: [% LxERP.format_amount(dunning_amount, 2) %]
|
[%- END %]
Steuersatz |
- [% taxzone %] |
+
+ [%- INCLUDE 'generic/multibox.html'
+ name = 'taxzone_id',
+ style = 'width: 250px',
+ DATA = ALL_TAXZONES,
+ id_key = 'id',
+ label_key = 'description' -%]
+ |
[%- IF selectdepartment %]
@@ -82,11 +126,11 @@
Wechselkurs |
- [%~ IF forex ~%]
+ [%- IF forex %]
[% LxERP.format_amount(exchangerate, 0) %]
- [%~ ELSE ~%]
+ [%- ELSE %]
- [%~ END ~%]
+ [%- END %]
|
[%- END %]
@@ -95,7 +139,7 @@
Motiv |
|
-[%- END -%]
+[%- END %]
Versandort |
|
@@ -137,52 +181,80 @@
[% openclosed %]
Bearbeiter |
- [% employee %] |
+
+ [%- INCLUDE 'generic/multibox.html'
+ name = 'employee_id',
+ DATA = ALL_EMPLOYEES,
+ id_key = 'id',
+ label_sub = 'sales_employee_labels' -%]
+ |
-[%- IF salesmen %]
+[%- IF is_sales and ALL_SALESMEN.size %]
Verkäufer/in |
- [% salesmen %] |
+
+ [%- INCLUDE 'generic/multibox.html'
+ name = 'salesman_id',
+ default = salesman_id ? salesman_id : employee_id,
+ DATA = ALL_SALESMEN,
+ id_key = 'id',
+ label_sub = 'sales_employee_labels' -%]
+ |
[%- END %]
[%- IF is_order %]
Auftragsnummer |
- |
+ |
+
+[%- END %]
+[%- IF is_pur_ord || is_req_quo %]
+
+ Bestellanfragenummer |
+ |
[%- END %]
[% IF is_req_quo %]Anfragenummer[% ELSE %]Angebotsnummer[% END %] |
- |
+ |
-[%- IF is_order %]
+[%- IF is_order %]
+
Bestellnummer des Kunden |
- |
+ |
[%- END %]
- [%~ IF is_order ~%]
+ [%- IF is_order %]
Auftragsdatum
- [%~ ELSE ~%]
+ [%- ELSE %]
Angebotsdatum
- [%~ END ~%]
+ [%- END %]
|
[% button1 %]
- [%~ IF is_sales_quo ~%]
+ [%- IF is_sales_quo %]
gültig bis
- [%~ ELSE ~%]
+ [%- ELSE %]
Lieferdatum
- [%~ END ~%]
+ [%- END %]
|
[% button2 %]
Projektnummer |
- [% globalprojectnumber %] |
+
+ [%- INCLUDE 'generic/multibox.html'
+ name = 'globalproject_id',
+ DATA = ALL_PROJECTS,
+ id_key = 'id',
+ label_key = 'projectnumber',
+ show_empty = 1,
+ onChange = "document.getElementById('update_button').click();" -%]
+ |
|