X-Git-Url: http://wagnertech.de/git?p=kivitendo-erp.git;a=blobdiff_plain;f=templates%2Fwebpages%2Fyearend%2F_charts.html;fp=templates%2Fwebpages%2Fyearend%2F_charts.html;h=20f76212d2a3c22e4cced48ad247b9aa31c71ff8;hp=0000000000000000000000000000000000000000;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44 diff --git a/templates/webpages/yearend/_charts.html b/templates/webpages/yearend/_charts.html new file mode 100644 index 000000000..20f76212d --- /dev/null +++ b/templates/webpages/yearend/_charts.html @@ -0,0 +1,79 @@ +[%- USE LxERP -%] +[%- USE T8 -%] +[%- USE L -%] +[%- USE HTML -%] +[%- USE P -%] + + +[%- SET dec = 2 %] + +

[% 'Balance accounts' | $T8 %]

+ + + + + + + + + + + + + + + + + + + [% FOREACH chart = charts %] + [%- NEXT UNLESS chart.account_type == 'asset_account' -%] + + + + + + + + [% # cb amounts: >/< are switched and cb_amounts are multiplied with -1. The closing balance as calculated by cb_amount negates the actual balance, but when displaying it as the closing balance we want to display it in the same form as the actual balance %] + + + + [% END %] +
[%- 'Account' | $T8 %][%- 'Description' | $T8 %][%- 'Starting Balance' | $T8 %][%- 'Balance with CB' | $T8 %][%- 'Closing Balance' | $T8 %]
[%- 'Debit' | $T8 %][%- 'Credit' | $T8 %][%- 'Debit' | $T8 %][%- 'Credit' | $T8 %][%- 'Debit' | $T8 %][%- 'Credit' | $T8 %]
[% chart.accno | html %] [% chart.description | html %] [% IF chart.ob_amount < 0 %] [% LxERP.format_amount(chart.ob_amount * -1, dec) %] [% END %] [% IF chart.ob_amount > 0 %] [% LxERP.format_amount(chart.ob_amount, dec) %] [% END %] [% IF chart.amount_with_cb < 0 %] [% LxERP.format_amount(chart.amount_with_cb * -1, dec) %] [% END %] [% IF chart.amount_with_cb > 0 %] [% LxERP.format_amount(chart.amount_with_cb, dec) %] [% END %] [% IF chart.cb_amount > 0 %] [% LxERP.format_amount(chart.cb_amount * 1, dec) %] [% END %] [% IF chart.cb_amount < 0 %] [% LxERP.format_amount(chart.cb_amount * -1, dec) %] [% END %]
+ +

[% 'Profit and loss accounts' | $T8 %]

+ +

+[% IF profit_loss_sum < 0 %] [% THEN %][% 'Loss' | $T8 %] [% ELSE %] [% 'Profit' | $T8 %] [% END %]: +[% LxERP.format_amount(profit_loss_sum, dec) %] +

+ + + + + + + + + + + + + + + + + [% FOREACH chart = charts %] + [%- NEXT UNLESS chart.account_type == 'profit_loss_account' -%] + + + + + + + + + [% END %] +
[%- 'Account' | $T8 %][%- 'Description' | $T8 %][%- 'Balance with CB' | $T8 %][%- 'Closing Balance' | $T8 %]
[%- 'Debit' | $T8 %][%- 'Credit' | $T8 %][%- 'Debit' | $T8 %][%- 'Credit' | $T8 %]
[% chart.accno | html %][% chart.description | html %][% IF chart.amount_with_cb < 0 %] [% LxERP.format_amount(chart.amount_with_cb * -1, dec) %] [% END %][% IF chart.amount_with_cb > 0 %] [% LxERP.format_amount(chart.amount_with_cb, dec) %] [% END %][% IF chart.cb_amount > 0 %] [% LxERP.format_amount(chart.cb_amount * 1, dec) %] [% END %][% IF chart.cb_amount < 0 %] [% LxERP.format_amount(chart.cb_amount * -1, dec) %] [% END %]
+[% # L.dump(charts) %]