[%- USE L %] [%- USE HTML %] [%- USE LxERP %] [%- USE T8 %] [% BLOCK sub_total %] [% FOREACH col IN column_index %] [%- SWITCH col %] [%- CASE [ 'netamount', 'tax', 'amount' ] %][% LxERP.format_amount(row.$col, 2) %] [%- CASE %] [% END %] [% END %] [% END %]

[% title %] [% SET tax_report__accno_title = accno _ '_description' %][% GET $tax_report__accno_title %]

[% FOREACH option IN options %][% option %][% '
' UNLESS loop.last %][% END %]

[%- FOREACH col IN column_index %] [%- END %] [%- FOREACH row IN DATA %] [% IF row.subtotal %] [% PROCESS sub_total class='listsubtotal' %] [% ELSIF row.total %] [% PROCESS sub_total class='listtotal' %] [% ELSE %] [%- FOREACH col IN column_index %] [%- IF row.$col.link %][% END %] [%- IF row.$col.numeric %] [%- LxERP.format_amount(row.$col.data, 2) | html %] [%- ELSE %] [%- row.$col.data | html %] [%- END %] [%- IF row.$col.link %][% END %] [%- END %] [% END %] [%- END %]
[%- IF column_sorted.$col %][% END %] [%- column_header.$col %] [%- IF column_sorted.$col %][% END %]