@@ -88,32 +76,36 @@
[% 'Vendor' | $T8 %]
- [% IF ( selectvendor ) %]
- [% selectvendor %]
- [% ELSE %]
-
- [% END %]
-
+ [% P.customer_vendor_picker("vendor_id", vendor_id, type="vendor", style="width: 300px") %]
+ [% L.button_tag("show_vc_details('vendor')", LxERP.t8('Details (one letter abbreviation)')) %]
+ [% L.hidden_tag("previous_vendor_id", vendor_id) %]
-
-
-
-
- [% 'Credit Limit' | $T8 %]
- [% creditlimit | html %]
- [% 'Remaining' | $T8 %]
- [% creditremaining | html %]
-
-
+ [% LxERP.t8("Credit Limit") %]
+
+ [% creditlimit | html %];
+ [% LxERP.t8("Remaining") %]
+ [% creditremaining | html %]
+[%- IF invoice_obj.sepa_exports.as_list.size %]
+
+ [% LxERP.t8("SEPA exports") %]
+
+ [% FOREACH export = invoice_obj.sepa_exports.as_list %]
+ [% HTML.escape(export.id) %]
+ [% UNLESS loop.last %], [% END %]
+ [% END %]
+
+
+[%- END %]
+
[% 'Currency' | $T8 %]
- [% selectcurrency %]
+ [% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %]
[% IF ( defaultcurrency && (currency != defaultcurrency) ) %]
[% 'Exchangerate' | $T8 %]
@@ -126,12 +118,10 @@
- [% IF ( selectdepartment ) %]
+ [% IF ALL_DEPARTMENTS %]
[% 'Department' | $T8 %]
-
- [% selectdepartment %]
-
+ [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1) %]
[% END %]
@@ -139,6 +129,10 @@
[% 'Tax Included' | $T8 %]
+
+
+ [% 'direct debit' | $T8 %]
+
@@ -162,7 +156,9 @@
[% 'Project Number' | $T8 %]
- [% globalprojectnumber %]
+
+ [% L.select_tag('globalproject_id', ALL_PROJECTS, with_empty = 1, default = globalproject_id, value_key = 'id', title_key = 'projectnumber', onChange = "document.getElementById('update_button').click();") %]
+
@@ -185,7 +181,9 @@
[% FOREACH i IN [1..rowcount] %]
- [% temp = "selectAP_amount_"_ i %][% $temp %]
+ [% 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" : "")) %]
+ [% L.hidden_tag("previous_AP_amount_chart_id_" _ i, $selected_chart_id) %]
@@ -195,10 +193,13 @@
[% temp = "tax_"_ i %][% $temp | html %]
- [% temp = "select_tax_"_ i %][% $temp %]
+ [% temp = 'selected_taxchart_'_ i %]
+ [% taxcharts = 'taxcharts_' _ i %]
+ [% L.select_tag('taxchart_'_ i, $taxcharts, value_title_sub = \taxchart_value_title_sub, default = $temp, style="width: 250px") %]
- [% temp = "select_projectnumber_"_ i %][% $temp %]
+ [% temp = "project_id_"_ i %]
+ [% L.select_tag(temp, ALL_PROJECTS, with_empty = 1, default = loop.last ? globalproject_id : $temp, value_key = 'id', title_key = 'projectnumber') %]
[% END %]
@@ -209,7 +210,9 @@
- [% APselected %]
+
+ [% P.chart_picker('AP_chart_id', AP_chart_id, style="width: 400px", type="AP") %]
+
[% invtotal | html %]
@@ -245,6 +248,7 @@
[% 'Source' | $T8 %]
[% 'Memo' | $T8 %]
[% 'Amount' | $T8 %]
+
[% IF ( !defaultcurrency || (currency != defaultcurrency) ) %]
[% 'Exch' | $T8 %]
[% END %]
@@ -260,10 +264,10 @@
[% temp = "datepaid_"_ i %]
[% IF( changeable ) %]
- [% L.date_tag(temp, $temp) %]
+ [% L.date_tag(temp, $temp ? $temp : today) %]
[% ELSE %]
[% $temp | html %]
- |;
+
[% END %]
@@ -297,6 +301,12 @@
[% END %]
+
+ [% IF changeable && loop.last && paid_missing > 0 %]
+
+ [% END %]
+
+
[% IF ( !defaultcurrency || (currency != defaultcurrency) ) %]
[% temp = "exchangerate_"_ i %]
@@ -316,19 +326,17 @@
[% temp = "AP_paid_"_ i %]
[% IF( changeable ) %]
- [% temp = "select"_ temp %]
- [% $temp %]
+ [% L.select_tag(temp, ALL_CHARTS_AP_paid, value_title_sub = \AP_paid_value_title_sub, default = ($temp || accno_arap)) %]
[% ELSE %]
[% $temp | html %]
[% END %]
- [% temp = "paid_project_id_"_ i %]
+ [% temp = "paid_project_id_"_ i %]
[% IF( changeable ) %]
- [% temp = "select"_ temp %]
- [% $temp %]
+ [% L.select_tag(temp, ALL_PROJECTS, with_empty = 1, default = $temp, value_key = 'id', title_key = 'projectnumber') %]
[% ELSE %]
[% temp = "label"_ temp %]
@@ -353,7 +361,16 @@
-
-
-
+