@@ -40,16 +47,11 @@
[% 'Customer' | $T8 %]
-[%- IF selectcustomer %]
- [% selectcustomer %]
-[%- ELSE %]
-
-[%- END %]
-
- [% L.hidden_tag('selectcustomer', selectcustomer) %]
- [% L.hidden_tag('oldcustomer', oldcustomer) %]
- [% L.hidden_tag('customer_id', customer_id) %]
- [% L.hidden_tag('terms', terms) %]
+ [% P.customer_vendor.picker("customer_id", customer_id, type="customer", style="width: 330px", class=(initial_focus == 'customer_id' ? "initial_focus" : ""), onchange="\$('#update_button').click()") %]
+ [% L.button_tag("show_vc_details('customer')", LxERP.t8('Details (one letter abbreviation)')) %]
+ [% L.hidden_tag("previous_customer_id", customer_id) %]
+ [% L.hidden_tag('terms', terms) %]
+
[%- IF max_dunning_level || invoice_obj.dunning_config_id %]
@@ -90,8 +92,7 @@
[%- END %]
[% 'Currency' | $T8 %]
- [% selectcurrency %]
- [% L.hidden_tag('selectcurrency', selectcurrency) %]
+ [% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %]
[% L.hidden_tag('defaultcurrency', defaultcurrency) %]
[% L.hidden_tag('fxgain_accno', fxgain_accno) %]
[% L.hidden_tag('fxloss_accno', fxloss_accno) %]
@@ -99,18 +100,19 @@
[% L.hidden_tag('forex', forex) %]
[% IF show_exch %]
[% 'Exchangerate' | $T8 %]
-- [%- IF forex %][% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate, 2)) %][% LxERP.format_amount(exchangerate, 2) %][%- ELSE %][% L.input_tag('exchangerate', LxERP.format_amount(exchangerate, 2), size=10) %][%- END %]
+ [%- IF forex %][% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate, 5, 1)) %][% LxERP.format_amount(exchangerate, 5, 1) %][%- ELSE %][% L.input_tag('exchangerate', LxERP.format_amount(exchangerate, 5, 1), size=10) %][%- END %]
[% END %]
- [% department_html %]
- [%- IF selectdepartment %]
+ [% IF ALL_DEPARTMENTS %]
+
+ [% 'Department' | $T8 %]
+ [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, style = 'width:334px') %]
+
+ [% END %]
- [% 'Department' | $T8 %]
- [% selectdepartment %]
-
-
+ [% 'Transaction description' | $T8 %]
+ [% L.input_tag("transaction_description", transaction_description, style="width:330px", "data-validate"=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '') %]
- [%- END %]
[% L.checkbox_tag('taxincluded', checked=taxincluded) %]
[% 'Tax Included' | $T8 %]
@@ -123,14 +125,10 @@
-[%- IF selectemployee %]
[% 'Salesperson' | $T8 %]
- [% selectemployee %] [% L.hidden_tag('selectemployee', selectemployee) %]
+ [% P.select_tag("employee_id", employees, default=employee_id, title_key='safe_name') %]
-[%- ELSE %]
- [% L.hidden_tag('employee', employee) %]
-[%- END %]
[% 'Invoice Number' | $T8 %]
@@ -147,9 +145,17 @@
[% 'Due Date' | $T8 %]
[% L.date_tag('duedate', duedate) %]
+
+ [% LxERP.t8('Tax point') %]
+ [% L.date_tag('tax_point', tax_point, id='tax_point') %]
+
+
+ [% 'Delivery Date' | $T8 %]
+ [% L.date_tag('deliverydate', deliverydate) %]
+
[% 'Project Number' | $T8 %]
- [% L.select_tag('globalproject_id', ALL_PROJECTS, title_key = 'projectnumber', default = globalproject_id, with_empty = 1) %]
+ [% L.select_tag('globalproject_id', ALL_PROJECTS, title_key = 'projectnumber', default = globalproject_id, with_empty = 1, onChange = "document.getElementById('update_button').click();") %]
@@ -187,7 +193,7 @@
- [% ARselected %]
+ [% P.chart.picker("AR_chart_id", AR_chart_id, style="width: 400px", type="AR") %]
[% LxERP.format_amount(invtotal, 2) | html %]
@@ -260,7 +266,7 @@
[%- IF row.changeable %]
-
+
[%- ELSE %]
[% row.paid | html %]
[%- END %]
@@ -273,9 +279,9 @@
[%- IF show_exch %]
[%- IF row.forex || !row.changeable%]
- [% row.exchangerate | html %]
+ [%- LxERP.format_amount(row.exchangerate, 5, 1) -%]
[%- ELSE %]
-
+
[%- END %]
@@ -322,5 +328,5 @@