-
-
+
+
|
@@ -146,11 +170,11 @@
@@ -185,49 +211,56 @@
[% FOREACH i IN [1..rowcount] %]
- [% temp = "selectAP_amount_"_ i %][% $temp %]
-
+ [% selected_accno_full = "selected_accno_full_"_ i %]
+ [% L.select_tag('AP_amount_'_ i, ALL_CHARTS_AP_amount, value_title_sub = \AP_amount_value_title_sub, onchange = 'setTaxkey(this, '_ i _')', default = $selected_accno_full) %]
+
+
+
|
-
+
|
- [% 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 %] |
- |
+
+ [% L.select_tag('APselected', ALL_CHARTS_AP, value_title_sub = \APselected_value_title_sub, default = APselected) %]
+ |
+ [% invtotal | html %] |
+ |
-
+
- [% 'Notes' | $T8 %] |
-
-
+ | [% 'Notes' | $T8 %] |
+
+
|
- [% 'Notes for vendor' | $T8 %] |
-
-
+ | [% 'Notes for vendor' | $T8 %] |
+
+
|
@@ -235,9 +268,9 @@
-
-
- [% 'Payments' | $T8 %] |
+
+
+ [% 'Payments' | $T8 %] |
@@ -245,6 +278,7 @@
[% 'Source' | $T8 %] |
[% 'Memo' | $T8 %] |
[% 'Amount' | $T8 %] |
+ |
[% IF ( !defaultcurrency || (currency != defaultcurrency) ) %]
[% 'Exch' | $T8 %] |
[% END %]
@@ -260,40 +294,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 +343,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 +391,16 @@
-
-
|
-
+
+[% PROCESS 'webdav/_list.html' %]
+
+ [% LxERP.t8('Loading...') %]
+
+
+
+
+
+
| | |