Vendas por Familia / Subfamilia / Produto
[% IF sales_family.families.keys.size > 0 -%]
----------------------------------------
 [% i18n("VENDAS POR FAM / SUB FAM / PRODUTO") %]
----------------------------------------
[% FOREACH fam_name IN sales_family.families.keys.sort -%]
[% fam_name.chars(22) | format("%-22s") %] [% sales_family.families.$fam_name.total | format("%.2f") | format("%7s") %] ([% sales_family.families.$fam_name.total_qttys.myround_qtty | format("%.2f") | format("%7s") %])
[% FOREACH subfam_name IN sales_family.families.$fam_name.subfamilies.keys.sort -%]
 [% subfam_name.chars(21) | format("%-21s") %] [% sales_family.families.$fam_name.subfamilies.$subfam_name.total | format("%.2f") | format("%7s") %] ([% sales_family.families.$fam_name.subfamilies.$subfam_name.total_qttys.myround_qtty | format("%.2f") | format("%7s") %])
[% FOREACH prod_name IN sales_family.families.$fam_name.subfamilies.$subfam_name.products.keys.sort -%]
  [% prod_name.chars(20) | format("%-20s") %] [% sales_family.families.$fam_name.subfamilies.$subfam_name.products.$prod_name.total | format("%.2f") | format("%7s") %] ([% sales_family.families.$fam_name.subfamilies.$subfam_name.products.$prod_name.total_qttys.myround_qtty | format("%.2f") | format("%7s") %])
[% END -%]
[% END -%]
[% END -%]

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

