X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=templates%2Fwebpages%2Fis%2F_payments.html;h=93a0fb879775c36ac23aa81d4b23fe320f2d8e93;hb=677f0dd53d5f964fb4e69eaf7236ffb6a830568b;hp=771cede7478f9c6cf50120a8dc692ef30201eea4;hpb=0bb4cd20cd1b1de4c2b73f95119d116b9427807a;p=kivitendo-erp.git diff --git a/templates/webpages/is/_payments.html b/templates/webpages/is/_payments.html index 771cede74..93a0fb879 100644 --- a/templates/webpages/is/_payments.html +++ b/templates/webpages/is/_payments.html @@ -1,4 +1,6 @@ -[%- USE LxERP %][% USE T8 %] +[%- USE LxERP %] +[%- USE T8 %] +[%- USE L %] @@ -16,6 +18,7 @@ + [% IF show_exchangerate %] [% END %] @@ -26,7 +29,7 @@ [% FOREACH i = paid_indices %] [% SET changeable = 'changeable_' _ i %] [% SET acc_trans_id = 'acc_trans_id_' _ i %] - [% SET gldate = 'gldate_' _ i %] + [% SET p_gldate = 'gldate_' _ i %] [% SET datepaid = 'datepaid_' _ i %] [% SET source = 'source_' _ i %] [% SET memo = 'memo_' _ i %] @@ -36,15 +39,18 @@ + [% IF show_exchangerate %] - [% IF $changeable %] - - - - [% END %] - [% END # foreach %] @@ -140,3 +139,6 @@ +
[%- 'Source' | $T8 %] [%- 'Memo' | $T8 %] [%- 'Amount' | $T8 %][%- 'Exch' | $T8 %]
- +
[% IF $changeable %] - - + [% IF $datepaid %] + [% L.date_tag('datepaid_'_ i, $datepaid) %] + [% ELSE %] + [% L.date_tag('datepaid_'_ i, today) %] + [% END %] [% ELSE %] [% $datepaid %] [% END %] @@ -66,26 +72,31 @@ [% IF $changeable %] - + [% ELSE %] [% LxERP.format_amount($paid, 2, 1) %] [% END %] + [% IF $changeable && loop.last && paid_missing > 0 %] + + [% END %] + [% SET forex = 'forex_' _ i %] [% SET exchangerate = 'exchangerate_' _ i %] - [% IF forex %] - - [% LxERP.format_amount($forex, 2) %] + [% IF $forex %] + + [% LxERP.format_amount($forex, 5) %] [% ELSE %] [% IF $changeable %] - + [% ELSE %] - - [% LxERP.format_amount($exchangerate, 2, 1) %] + + [% LxERP.format_amount($exchangerate, 5, 1) %] [% END %] [% END %] @@ -101,18 +112,6 @@
- -