X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/175dd1fb247e46407ebc773b8103fc773a806fdf..HEAD:/templates/webpages/is/_payments.html?ds=sidebyside diff --git a/templates/webpages/is/_payments.html b/templates/webpages/is/_payments.html index 41b018615..4c9cca662 100644 --- a/templates/webpages/is/_payments.html +++ b/templates/webpages/is/_payments.html @@ -18,6 +18,7 @@ [%- 'Source' | $T8 %] [%- 'Memo' | $T8 %] [%- 'Amount' | $T8 %] + [% IF show_exchangerate %] [%- 'Exch' | $T8 %] [% END %] @@ -45,7 +46,11 @@ [% IF $changeable %] - [% L.date_tag('datepaid_'_ i, $datepaid) %] + [% IF $datepaid %] + [% L.date_tag('datepaid_'_ i, $datepaid) %] + [% ELSE %] + [% L.date_tag('datepaid_'_ i, today) %] + [% END %] [% ELSE %] [% $datepaid %] [% END %] @@ -67,26 +72,35 @@ [% IF $changeable %] - + [% ELSE %] [% LxERP.format_amount($paid, 2, 1) %] [% END %] + + [% IF $changeable && loop.last && paid_missing > 0 %] + + [% END %] + [% IF show_exchangerate %] [% SET forex = 'forex_' _ i %] [% SET exchangerate = 'exchangerate_' _ i %] + [% SET defaultcurrency_paid = 'defaultcurrency_paid_' _ i %] + [% SET record_forex = 'record_forex_' _ i %] [% IF $forex %] - - [% LxERP.format_amount($forex, 2) %] + + + [% LxERP.format_amount($forex, 5) %] = [% LxERP.format_amount($defaultcurrency_paid, 5) %] [% defaultcurrency %]
+ [% IF $record_forex %][% 'bank transaction exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %] [% ELSE %] [% IF $changeable %] - + [% ELSE %] - - [% LxERP.format_amount($exchangerate, 2, 1) %] + + [% LxERP.format_amount($exchangerate, 5, 1) %] [% END %] [% END %] @@ -102,30 +116,23 @@ - [% IF $changeable %] - - - - - - [% END %] - [% END # foreach %] [%- 'Total' | $T8 %] - [% LxERP.format_amount(totalpaid, 2) | html %] + [% LxERP.format_amount(totalpaid, 2) | html %] [% currency %] + + [% IF show_exchangerate %] + [% LxERP.format_amount(defaultcurrency_totalpaid, 2) | html %] [% defaultcurrency %] + [% END %] [%- 'Missing amount' | $T8 %] - [% LxERP.format_amount(paid_missing, 2) | html %] + [% LxERP.format_amount(paid_missing, 2) | html %] [% currency %] @@ -140,3 +147,6 @@ +