-
-
+
+
@@ -146,11 +148,11 @@
@@ -185,49 +189,55 @@
[% 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) %]
+
-
+
- [% temp = "tax_"_ i %][% $temp %]
+ [% temp = "tax_"_ i %][% $temp | html %]
- [% temp = "select_tax_"_ i %][% $temp %]
+ [% temp = 'selected_taxchart_'_ i %]
+ [% L.select_tag('taxchart_'_ i, ALL_TAXCHARTS, value_title_sub = \taxchart_value_title_sub, default = $temp) %]
- [% 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 %]
-
+
- [% APselected %]
- [% invtotal %]
-
+
+ [% P.chart_picker('AP_chart_id', AP_chart_id, style="width: 400px", type="AP") %]
+
+ [% invtotal | html %]
+
-
+
- [% 'Notes' | $T8 %]
-
-
+ [% 'Notes' | $T8 %]
+
+
- [% 'Notes for vendor' | $T8 %]
-
-
+ [% 'Notes for vendor' | $T8 %]
+
+
@@ -235,9 +245,9 @@
-
-
- [% 'Payments' | $T8 %]
+
+
+ [% 'Payments' | $T8 %]
@@ -245,6 +255,7 @@
[% 'Source' | $T8 %]
[% 'Memo' | $T8 %]
[% 'Amount' | $T8 %]
+
[% IF ( !defaultcurrency || (currency != defaultcurrency) ) %]
[% 'Exch' | $T8 %]
[% END %]
@@ -260,40 +271,46 @@
[% temp = "datepaid_"_ i %]
[% IF( changeable ) %]
- [% L.date_tag(temp, $temp) %]
+ [% L.date_tag(temp, $temp ? $temp : today) %]
[% ELSE %]
- [% $temp %]
- |;
+ [% $temp | html %]
+
[% END %]
[% temp = "source_"_ i %]
[% IF( changeable ) %]
-
+
[% ELSE %]
- [% $temp %]
-
+ [% $temp | html %]
+
[% END %]
[% temp = "memo_"_ i %]
[% IF( changeable ) %]
-
+
[% ELSE %]
- [% $temp %]
-
+ [% $temp | html %]
+
[% END %]
[% temp = "paid_"_ i %]
[% IF( changeable ) %]
-
+
[% ELSE %]
- [% $temp %]
-
+ [% $temp | html %]
+
+ [% END %]
+
+
+
+ [% IF changeable && loop.last && paid_missing > 0 %]
+
[% END %]
@@ -303,36 +320,34 @@
[% temp_forex = "forex_"_ i %]
[% IF( $temp_forex || !changeable ) %]
- [% $temp %]
-
+ [% $temp | html %]
+
[% ELSE %]
-
+
[% END %]
-
+
[% END %]
[% 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 %]
-
+ [% $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 %]
- [% $temp %]
+ [% $temp | html %]
[% END %]
@@ -353,7 +368,16 @@
-
-
-
+
+[% PROCESS 'webdav/_list.html' %]
+
+ [% LxERP.t8('Loading...') %]
+
+
+
+
+
+