- [% 'Basic Data' | $T8 %]
+[% IF email_attachment_id || workflow_email_attachment_id %]
+ - [% 'Email Attachment Preview' | $T8 %]
+[% END %]
[%- IF INSTANCE_CONF.get_webdav %]
- [% 'WebDAV' | $T8 %]
[%- END %]
@@ -89,8 +105,8 @@
| [% 'Vendor' | $T8 %] |
- [% P.customer_vendor.picker("vendor_id", vendor_id, type="vendor", style="width: 330px", onchange="\$('#update_button').click()") %]
- [% L.button_tag("show_vc_details('vendor')", LxERP.t8('Details (one letter abbreviation)')) %]
+ [% P.customer_vendor.picker("vendor_id", vendor_id, type="vendor", show_details="1",
+ style="width: 330px", class=(initial_focus == 'vendor_id' ? "initial_focus" : "")) %]
[% L.hidden_tag("previous_vendor_id", vendor_id) %]
|
@@ -103,7 +119,6 @@
[% creditremaining | html %]
-
[%- IF invoice_obj.sepa_exports.as_list.size %]
| [% LxERP.t8("SEPA exports") %] |
@@ -115,20 +130,28 @@
[%- 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 %]
+ |
[% IF ( defaultcurrency && (currency != defaultcurrency) ) %]
[% 'Exchangerate' | $T8 %] |
- [% IF ( forex ) %]
- [% exchangerate | html %] |
- [% ELSE %]
- |
- [% 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 %]
+ [% L.hidden_tag("record_forex", record_forex) %]
[% END %]
-
|
[% IF ALL_DEPARTMENTS %]
@@ -207,12 +230,12 @@
|
[% SET selected_chart_id = "AP_amount_chart_id_"_ i %]
- [% P.chart.picker("AP_amount_chart_id_" _ i, $selected_chart_id, style="width: 400px", type="AP_amount", class=(initial_focus == 'row_' _ i ? "initial_focus" : "")) %]
+ [% P.chart.picker("AP_amount_chart_id_" _ i, $selected_chart_id, style="width: 400px", type="AP_amount", invalid=0, disabled=readonly, class=(initial_focus == 'row_' _ i ? "initial_focus" : "")) %]
[% L.hidden_tag("previous_AP_amount_chart_id_" _ i, $selected_chart_id) %]
|
-
+
|
[% temp_r = "tax_reverse_"_ i %]
@@ -330,12 +353,12 @@
|
[% temp = "paid_"_ i %]
-
+ |
[% IF( changeable ) %]
[% ELSE %]
[% $temp | html %]
-
+ [% defaultcurrency %]
[% END %]
|
@@ -349,15 +372,20 @@
[% temp = "exchangerate_"_ i %]
[% temp_forex = "forex_"_ i %]
+ [% SET defaultcurrency_paid = 'defaultcurrency_paid_' _ i %]
+ [% SET record_forex = 'record_forex_' _ i %]
+ [% SET fx_transaction = 'fx_transaction_' _ i %]
[% IF( $temp_forex || !changeable ) %]
- [% $temp | html %]
+ [% $temp | html %] = [% LxERP.format_amount($defaultcurrency_paid,2) %] [% defaultcurrency %]
+ [% IF $record_forex %][% 'bank transaction exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
+
[% ELSE %]
[% END %]
-
+
|
[% END %]
@@ -389,13 +417,20 @@
|
|
[% 'Total' | $T8 %] |
- [% LxERP.format_amount(totalpaid, 2) | html %] |
+ [% LxERP.format_amount(totalpaid, 2) | html %] [% currency %] |
+ [% IF ( !defaultcurrency || (currency != defaultcurrency) ) %]
+ |
+ [% 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 %] |
[% END %]