- [% '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 %]
@@ -47,8 +62,8 @@
| [% 'Customer' | $T8 %] |
- [% 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)')) %]
+ [% 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) %]
|
@@ -92,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) %]
@@ -100,7 +122,15 @@
[% L.hidden_tag('forex', forex) %]
[% IF show_exch %]
[% 'Exchangerate' | $T8 %] |
- [%- 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 %] |
+
+ [%- 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 %]
@@ -268,7 +298,7 @@
[%- IF row.changeable %]
[%- ELSE %]
- [% row.paid | html %]
+ [% row.paid | html %] [% defaultcurrency %]
[%- END %]
@@ -278,8 +308,11 @@
|
[%- IF show_exch %]
+
[%- IF row.forex || !row.changeable%]
- [%- LxERP.format_amount(row.exchangerate, 5, 1) -%]
+
+ [%- 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 %]
@@ -310,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 %] |