Vendas por Funcionário
[% IF sales_by_clerk.clerks.keys.size > 0 -%]
----------------------------------------
         [% i18n("VENDAS POR FUNCIONÁRIO") %]
----------------------------------------

[% i18n("Funcionario") | format("%-12s") %] [% i18n("UpQty") | format("%5s") %] [% i18n("UpVal") | format("%7s") %] [% i18n("Trans") | format("%5s") %] [% i18n("Total") | format("%7s") %]
----------------------------------------
[% FOREACH clerk IN sales_by_clerk.clerks.keys.sort -%]
[% IF sales_by_clerk.clerks.$clerk.upsale_total > 0 -%]
[% clerk | format("%-13s") %] [% sales_by_clerk.clerks.$clerk.upsale_qtty | format("%4s") %] [% sales_by_clerk.clerks.$clerk.upsale_total | format("%.2f") | format("%7s") %] [% sales_by_clerk.clerks.$clerk.trans | format("%5s") %] [% sales_by_clerk.clerks.$clerk.total | format("%.2f") | format("%7s") %]
[% ELSE -%]
[% clerk | format("%-13s") %] [% "--" | format("%4s") %] [% "--" | format("%7s") %] [% sales_by_clerk.clerks.$clerk.trans | format("%5s") %] [% sales_by_clerk.clerks.$clerk.total | format("%.2f") | format("%7s") %]
[% END -%]
[% END -%]

[% i18n("Total") | format("%-32s") %] [% sales_by_clerk.total | format("%.2f") | format("%7s") %]
[% END -%]

