X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/46bc75c8079099de22ccbc6281b04f42ade67f1a..HEAD:/templates/webpages/ir/_payments.html diff --git a/templates/webpages/ir/_payments.html b/templates/webpages/ir/_payments.html index 1677219d4..df7a722c8 100644 --- a/templates/webpages/ir/_payments.html +++ b/templates/webpages/ir/_payments.html @@ -1,23 +1,19 @@ [%- USE T8 %] [%- USE LxERP %] [%- USE L %] +[%- USE HTML %] -[% IF is_type_credit_note || vc == 'vendor' %] -[% ELSE %] - -[%- END %] - - + [% IF show_exchangerate %] [% END %] @@ -43,7 +39,11 @@ + [% IF show_exchangerate %] [% END %] @@ -99,27 +112,28 @@ - [% IF $changeable %] - - [% END %] [% END # foreach %] - - + + + + [% IF show_exchangerate %] + + + [% END %] +[% UNLESS show_exchangerate %] - + +[% END %] @@ -130,3 +144,6 @@ +
[% 'Payments' | $T8 %][% 'Incoming Payments' | $T8 %]
[% 'Date' | $T8 %] [% 'Source' | $T8 %] [% 'Memo' | $T8 %] [% 'Amount' | $T8 %][% 'Exch' | $T8 %] [% 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 %] @@ -70,23 +70,36 @@ [% 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(exchangerate, 2) %] + [% SET defaultcurrency_paid = 'defaultcurrency_paid_' _ i %] + [% SET record_forex = 'record_forex_' _ i %] + [% SET fx_transaction = 'fx_transaction_' _ i %] + [% IF $forex %] + + + + + + [% 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 %] - ; +
[% 'Total' | $T8 %][% LxERP.foramt_amount(totalpaid, 2) | html %][%- 'Total' | $T8 %][% LxERP.format_amount(totalpaid, 2) | html %] [% currency %][% LxERP.format_amount(defaultcurrency_totalpaid, 2) | html %] [% defaultcurrency %]
[% 'Missing amount' | $T8 %][%- 'Missing amount' | $T8 %] [% LxERP.format_amount(paid_missing, 2) | html %]