@@ -85,8 +105,8 @@
| [% 'Vendor' | $T8 %] |
- [% P.customer_vendor.picker("vendor_id", vendor_id, type="vendor", style="width: 300px", 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) %]
|
@@ -99,7 +119,6 @@
[% creditremaining | html %]
-
[%- IF invoice_obj.sepa_exports.as_list.size %]
| [% LxERP.t8("SEPA exports") %] |
@@ -111,29 +130,41 @@
[%- 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 %]
| [% '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' : '') %] |
+
|
[% 'Tax Included' | $T8 %] |
@@ -157,7 +188,7 @@
| [% 'Invoice Date' | $T8 %] |
- [% L.date_tag('transdate', transdate) %] |
+ [% L.date_tag('transdate', transdate, onchange='kivi.SalesPurchase.set_duedate_on_reference_date_change("transdate")') %] |
| [% 'Due Date' | $T8 %] |
@@ -199,15 +230,22 @@
|
[% 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 = "tax_"_ i %][% $temp | html %]
+ [% temp_r = "tax_reverse_"_ i %]
+ [% IF ($temp_r) %]
+ [% $temp_r | html %]
+
+ [% temp_c = "tax_charge_"_ i %][% $temp_c | html %]
+ [% ELSE %]
+ [% temp = "tax_"_ i %][% $temp | html %]
+ [% END %]
|
[% temp = 'selected_taxchart_'_ i %]
@@ -252,7 +290,7 @@
[% L.textarea_tag("intnotes", intnotes, wrap="soft", rows=textarea_rows, cols=50, readonly=readonly) %]
|
- [% L.select_tag('payment_id', payment_terms, default=payment_id, title_key='description', with_empty=1, style="width: 250px", onchange="kivi.SalesPurchase.set_duedate_on_reference_date_change('invdate')") %]
+ [% L.select_tag('payment_id', payment_terms, default=payment_id, title_key='description', with_empty=1, style="width: 250px", onchange="kivi.SalesPurchase.set_duedate_on_reference_date_change('transdate')") %]
|
@@ -315,12 +353,12 @@
[% temp = "paid_"_ i %]
-
+ [% IF ( !defaultcurrency || (currency != defaultcurrency) ) %]
+