Mapa de vendas para comissões
[% IF sales_for_comissions.dates.keys.size > 0 -%]
----------------------------------------
    [% i18n("MAPA DE VENDAS PARA COMISSOES") %]
----------------------------------------
[% i18n("FUNCIONARIO").replace(" ", "_").chars(10) %] [% i18n("SUB FAMILIA").replace(" ", "_").chars(13) %]  [% i18n("S/ IVA").replace(" ", "_").chars(7) %] [% i18n("C/ IVA").replace(" ", "_").chars(7) %]
[% FOREACH date IN sales_for_comissions.dates.keys.sort -%]

[% date %]
----------
[% FOREACH clerk IN sales_for_comissions.dates.$date.clerks.keys.sort -%]
[% FOREACH group IN sales_for_comissions.dates.$date.clerks.$clerk.groups.keys.sort -%]
[% FOREACH dept IN sales_for_comissions.dates.$date.clerks.$clerk.groups.$group.depts.keys.sort -%]
[% clerk.replace(" ", "_").chars(10) %] [% dept.replace(" ", "_").chars(13) %] [% sales_for_comissions.dates.$date.clerks.$clerk.groups.$group.depts.$dept.total_wo_vat | format("%.2f") | format("%7s") %] [% sales_for_comissions.dates.$date.clerks.$clerk.groups.$group.depts.$dept.total | format("%.2f") | format("%7s") %]
[% END -%]
[% END -%]
[% END -%]
[% END -%]
[% END -%]
