Vendas por cliente / Tx Iva
[% IF sales_by_customer_vat.customers.keys.size > 0 -%]
----------------------------------------
    [% i18n("VENDAS POR CLIENTE / TX IVA") %]
----------------------------------------
[% FOREACH customer_name IN sales_by_customer_vat.customers.keys.sort -%]
[% sales_by_customer_vat.customers.$customer_name.nif.chars(9) | format("%-9s") %] [% customer_name.chars(14) | format("%-14s") %] [% sales_by_customer_vat.customers.$customer_name.total | format("%.2f") | format("%7s") %] ([% sales_by_customer_vat.customers.$customer_name.total_qttys.myround_qtty | format("%.2f") | format("%7s") %])
[% FOREACH prod_name IN sales_by_customer_vat.customers.$customer_name.vats.keys.sort -%]
  [% prod_name | format("%.2f") | format("%-22s") %] [% sales_by_customer_vat.customers.$customer_name.vats.$prod_name.total | format("%.2f") | format("%7s") %] ([% sales_by_customer_vat.customers.$customer_name.vats.$prod_name.total_qttys.myround_qtty | format("%.2f") | format("%7s") %])
[% END -%]
[% END -%]

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