X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fir%2F_payments.html;h=bef8c338e727fa7f78390865802c02f43270320b;hb=15eda163ebc5f28f19161d567afdf03e37cf516a;hp=1677219d460678d9bb55b30653ce500ee121b585;hpb=46bc75c8079099de22ccbc6281b04f42ade67f1a;p=kivitendo-erp.git diff --git a/templates/webpages/ir/_payments.html b/templates/webpages/ir/_payments.html index 1677219d4..bef8c338e 100644 --- a/templates/webpages/ir/_payments.html +++ b/templates/webpages/ir/_payments.html @@ -1,6 +1,7 @@ [%- USE T8 %] [%- USE LxERP %] [%- USE L %] +[%- USE HTML %] @@ -18,6 +19,7 @@ + [% IF show_exchangerate %] [% END %] @@ -43,7 +45,11 @@ + [% IF show_exchangerate %] [% END %] @@ -99,12 +110,6 @@ - [% IF $changeable %] - - [% END %] [% END # foreach %] @@ -112,7 +117,7 @@ - + @@ -130,3 +135,6 @@ +
[% '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,14 +76,19 @@ [% 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 %] + [% IF $forex %] - [% LxERP.format_amount(exchangerate, 2) %] + [% LxERP.format_amount($forex, 2) %] [% ELSE %] [% IF $changeable %] @@ -86,7 +97,7 @@ [% LxERP.format_amount($exchangerate, 2, 1) %] [% END %] [% END %] - ; +
[% 'Total' | $T8 %][% LxERP.foramt_amount(totalpaid, 2) | html %][% LxERP.format_amount(totalpaid, 2) | html %]