X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fir%2F_payments.html;h=111083954f2d1e0517302827bac13b44de1c97c4;hb=95b5d54bac9dc0cb47c67444c9e19c1d68b0d520;hp=cb4088622f3644bf995535847e2d93fcd9f442bd;hpb=56f7991d4910ae12c7d16aab025a2ab242ca5eeb;p=kivitendo-erp.git diff --git a/templates/webpages/ir/_payments.html b/templates/webpages/ir/_payments.html index cb4088622..111083954 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 %] - + @@ -124,3 +129,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,20 +70,25 @@ [% 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) %] + + [% LxERP.format_amount($forex, 5) %] [% ELSE %] [% IF $changeable %] - + [% ELSE %] - - [% LxERP.format_amount($exchangerate, 2, 1) %] + + [% LxERP.format_amount($exchangerate, 5, 1) %] [% END %] [% END %] @@ -106,7 +111,7 @@ [% 'Total' | $T8 %][% LxERP.foramt_amount(totalpaid, 2) | html %][% LxERP.format_amount(totalpaid, 2) | html %]