- [% 'Basic Data' | $T8 %]
+ [% IF email_attachment_id || workflow_email_attachment_id %]
+ - [% 'Email Attachment Preview' | $T8 %]
+ [% END %]
[%- IF id %]
+ [%- IF INSTANCE_CONF.get_doc_storage %]
+ - [% 'Attachments' | $T8 %]
+ [%- END %]
[% IF AUTH.assert('record_links', 1) %]
- [% 'Linked Records' | $T8 %]
[%- END %]
@@ -42,8 +62,8 @@
| [% 'Customer' | $T8 %] |
- [% P.customer_vendor_picker("customer_id", customer_id, type="customer", style="width: 300px", class=(initial_focus == 'customer_id' ? "initial_focus" : "")) %]
- [% L.button_tag("show_vc_details('customer')", LxERP.t8('Details (one letter abbreviation)')) %]
+ [% P.customer_vendor.picker("customer_id", customer_id, type="customer",
+ show_details="1", style="width: 330px", class=(initial_focus == 'customer_id' ? "initial_focus" : "")) %]
[% L.hidden_tag("previous_customer_id", customer_id) %]
[% L.hidden_tag('terms', terms) %]
|
@@ -87,7 +107,14 @@
[%- END %]
| [% 'Currency' | $T8 %] |
- [% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %] |
+
+ [%- 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) %]
@@ -95,15 +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 %]
[% IF ALL_DEPARTMENTS %]
| [% 'Department' | $T8 %] |
- [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1) %] |
+ [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, style = 'width:334px') %] |
[% END %]
+
+ | [% 'Transaction description' | $T8 %] |
+ [% L.input_tag("transaction_description", transaction_description, style="width:330px", "data-validate"=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '') %] |
+
| [% L.checkbox_tag('taxincluded', checked=taxincluded) %] |
|
@@ -136,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();") %] |
@@ -176,7 +223,7 @@
- | [% P.chart_picker("AR_chart_id", AR_chart_id, style="width: 400px", type="AR") %] |
+ [% P.chart.picker("AR_chart_id", AR_chart_id, style="width: 400px", type="AR") %] |
[% LxERP.format_amount(invtotal, 2) | html %] |
@@ -249,9 +296,9 @@
[%- IF row.changeable %]
-
+
[%- ELSE %]
- [% row.paid | html %]
+ [% row.paid | html %] [% defaultcurrency %]
[%- END %]
|
@@ -261,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 %]
|
@@ -293,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 %] |
@@ -311,5 +367,5 @@