[%- USE HTML -%][%- USE LxERP -%] [%- SET name_col = FORM.params.salesman || FORM.params.buchungsgruppe || FORM.params.type %] [%- IF name_col %] [%- END %] [%- FOREACH month = SELF.liquidity.sorted.month %] [%- END %] [% IF FORM.params.type %] [% FOREACH type = SELF.liquidity.sorted.type %] [%- FOREACH month = SELF.liquidity.sorted.month %] [%- END %] [%- END %] [%- END %] [%- IF FORM.params.salesman %] [%- FOREACH salesman = SELF.liquidity.sorted.salesman %] [%- FOREACH month = SELF.liquidity.sorted.month %] [%- END %] [%- END %] [%- END %] [%- IF FORM.params.buchungsgruppe %] [%- FOREACH buchungsgruppe = SELF.liquidity.sorted.buchungsgruppe %] [%- FOREACH month = SELF.liquidity.sorted.month %] [%- END %] [%- END %] [%- END %] [% IF name_col %][% END %] [%- FOREACH month = SELF.liquidity.sorted.month %] [%- END %]
[% LxERP.t8("Type") %][% LxERP.t8("Name") %][%- IF month == 'old' %][% LxERP.t8("old") %][% ELSIF month == 'future' %][% LxERP.t8("prospective") %][% ELSE %][%- HTML.escape(month) %][% END %]
[% IF loop.first %][% LxERP.t8("Basis of calculation") %][% END %] [% IF type == 'order' %][% LxERP.t8("Sales Orders") %] [% ELSIF type == 'partial' %][% LxERP.t8("Partial invoices") %] [% ELSE %][% LxERP.t8("Periodic Invoices") %] [% END %] [% LxERP.format_amount(SELF.liquidity.$type.$month, 2) %]
[% IF loop.first %][% LxERP.t8("Salesman") %][% END %] [%- HTML.escape(salesman) %][% LxERP.format_amount(SELF.liquidity.salesman.$salesman.$month, 2) %]
[% IF loop.first %][% LxERP.t8("Booking group") %][% END %] [%- HTML.escape(buchungsgruppe) %][% LxERP.format_amount(SELF.liquidity.buchungsgruppe.$buchungsgruppe.$month, 2) %]
[% LxERP.t8("Total") %] [% IF SELF.liquidity.total.$month > 0 %] [% END %] [% LxERP.format_amount(SELF.liquidity.total.$month, 2) %] [% IF SELF.liquidity.total.$month > 0 %] [% END %]