[% 'Currency' | $T8 %]
- [% selectcurrency %]
- [% L.hidden_tag('selectcurrency', selectcurrency) %]
+
+ [%- IF readonly %]
+ [% HTML.escape(currency) %]
+ [% L.hidden_tag("currency", currency) %]
+ [%- ELSE %]
+ [% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %]
+ [%- END %]
+
[% L.hidden_tag('defaultcurrency', defaultcurrency) %]
[% L.hidden_tag('fxgain_accno', fxgain_accno) %]
[% L.hidden_tag('fxloss_accno', fxloss_accno) %]
@@ -101,18 +122,27 @@
[% L.hidden_tag('forex', forex) %]
[% IF show_exch %]
[% 'Exchangerate' | $T8 %]
- [%- IF forex %][% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate, 5)) %][% LxERP.format_amount(exchangerate, 5) %][%- ELSE %][% L.input_tag('exchangerate', LxERP.format_amount(exchangerate, 5), size=10) %][%- END %]
+
+ [%- IF readonly %]
+ [% LxERP.format_amount(exchangerate, 5) %]
+ [% L.hidden_tag("exchangerate", LxERP.format_amount(exchangerate, 5)) %]
+ [%- ELSE %]
+
+ [%- END %]
+ [% IF record_forex %][% 'record exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
+
[% END %]
- [% department_html %]
- [%- IF selectdepartment %]
+ [% IF ALL_DEPARTMENTS %]
+
[% L.checkbox_tag('taxincluded', checked=taxincluded) %]
[% 'Tax Included' | $T8 %]
@@ -125,14 +155,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 %]
@@ -149,6 +175,14 @@
[% '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, onChange = "document.getElementById('update_button').click();") %]
@@ -189,7 +223,7 @@
- [% ARselected %]
+ [% P.chart.picker("AR_chart_id", AR_chart_id, style="width: 400px", type="AR") %]
[% LxERP.format_amount(invtotal, 2) | html %]
@@ -262,9 +296,9 @@
[%- IF row.changeable %]
-
+
[%- ELSE %]
- [% row.paid | html %]
+ [% row.paid | html %] [% defaultcurrency %]
[%- END %]
@@ -274,10 +308,13 @@
[%- IF show_exch %]
+
[%- IF row.forex || !row.changeable%]
- [% row.exchangerate | html %]
+
+ [%- LxERP.format_amount(row.exchangerate, 5, 0) -%] = [% LxERP.format_amount(row.defaultcurrency_paid, 2) %] [% defaultcurrency %]
+ [% IF $record_forex %][% 'bank transaction exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
[%- ELSE %]
-
+
[%- END %]
@@ -306,13 +343,19 @@
[% 'Total' | $T8 %]
- [% LxERP.format_amount(totalpaid, 2) | html %]
+ [% LxERP.format_amount(totalpaid, 2) | html %] [% currency %]
+ [% IF show_exch %]
+
+ [% LxERP.format_amount(defaultcurrency_totalpaid, 2) | html %] [% defaultcurrency %]
+
+
+ [% END %]
[% 'Missing amount' | $T8 %]
- [% LxERP.format_amount(paid_missing, 2) | html %]
+ [% LxERP.format_amount(paid_missing, 2) | html %] [% currency %]
@@ -324,5 +367,5 @@