X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=templates%2Fwebpages%2Fir%2F_payments.html;h=6726c8b1dce915df6b982e788febf9f24b7338cb;hb=7230b956646b33a6a2da270df50d1e8edf5e4dd2;hp=c3c7ca2d36eb165d09a5a1a2aa9688b1c0a4096c;hpb=1e7d8e31721d592284644da88b3f03ccce98d10c;p=kivitendo-erp.git diff --git a/templates/webpages/ir/_payments.html b/templates/webpages/ir/_payments.html index c3c7ca2d3..6726c8b1d 100644 --- a/templates/webpages/ir/_payments.html +++ b/templates/webpages/ir/_payments.html @@ -1,22 +1,19 @@ [%- USE T8 %] [%- USE LxERP %] +[%- USE L %] +[%- USE HTML %]
[% 'Payments' | $T8 %] | -[% ELSE %] -[% 'Incoming Payments' | $T8 %] | -[%- END %]||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[% 'Date' | $T8 %] | [% 'Source' | $T8 %] | [% 'Memo' | $T8 %] | [% 'Amount' | $T8 %] | +[% IF show_exchangerate %] | [% 'Exch' | $T8 %] | [% END %] @@ -25,42 +22,88 @@ [% FOREACH i = paid_indices %] + [% SET changeable = 'changeable_' _ i %] + [% SET acc_trans_id = 'acc_trans_id_' _ i %] + [% SET p_gldate = 'gldate_' _ i %] [% SET datepaid = 'datepaid_' _ i %] [% SET source = 'source_' _ i %] [% SET memo = 'memo_' _ i %] [% SET paid = 'paid_' _ i %] + [% SET AP_paid = 'AP_paid_' _ i %] [% SET selectAP_paid_ref = 'selectAP_paid_' _ i %] + + +||||||
- - + [% IF $changeable %] + [% IF $datepaid %] + [% L.date_tag('datepaid_'_ i, $datepaid) %] + [% ELSE %] + [% L.date_tag('datepaid_'_ i, today) %] + [% END %] + [% ELSE %] + [% $datepaid %] + [% END %] + | ++ [% IF $changeable %] + + [% ELSE %] + [% $source %] + [% END %] + | ++ [% IF $changeable %] + + [% ELSE %] + [% $memo %] + [% END %] + | ++ [% 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 %] - [% IF forex %] - - [% LxERP.format_amount(exchangerate, 2) %] + [% IF $forex %] + + [% LxERP.format_amount($forex, 5) %] [% ELSE %] - + [% IF $changeable %] + + [% ELSE %] + + [% LxERP.format_amount($exchangerate, 5, 1) %] + [% END %] [% END %] - ; + | [% END %] -+ + | + [% IF $changeable %] + + [% ELSE %] + [% $AP_paid %] + [% END %] + | [% 'Total' | $T8 %] | -[% LxERP.foramt_amount(totalpaid, 2) | html %] | +[% LxERP.format_amount(totalpaid, 2) | html %] |
@@ -86,3 +129,6 @@ |