Vendas por cliente / artigo
[% IF sales_by_customer_product.customers.keys.size > 0 -%]
----------------------------------------
    [% i18n("VENDAS POR CLIENTE / PRODUTO") %]
----------------------------------------
[% FOREACH customer_name IN sales_by_customer_product.customers.keys.sort -%]
[% customer_name.chars(24) | format("%-24s") %] [% sales_by_customer_product.customers.$customer_name.total | format("%.2f") | format("%7s") %] ([% sales_by_customer_product.customers.$customer_name.total_qttys.myround_qtty | format("%.2f") | format("%7s") %])
[% FOREACH prod_name IN sales_by_customer_product.customers.$customer_name.products.keys.sort -%]
 [% prod_name.chars(23) | format("%-23s") %] [% sales_by_customer_product.customers.$customer_name.products.$prod_name.total | format("%.2f") | format("%7s") %] ([% sales_by_customer_product.customers.$customer_name.products.$prod_name.total_qttys.myround_qtty | format("%.2f") | format("%7s") %])
[% END -%]
[% END -%]

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