Vendas de artigos MENU
[% IF sales_by_menus.menus.products.keys.size > 0 -%]
----------------------------------------
           [% i18n("VENDAS DE MENUS") %]
----------------------------------------
[% FOREACH menu_name IN sales_by_menus.menus.products.keys.sort -%]
[% menu_name.chars(22) | format("%-22s") %] [% sales_by_menus.menus.products.$menu_name.total | format("%.2f") | format("%7s") %] ([% sales_by_menus.menus.products.$menu_name.total_qttys.myround_qtty | format("%.2f") | format("%7s") %])
[% FOREACH prod_name IN sales_by_menus.menus.products.$menu_name.products.keys.sort -%]
 [% prod_name.chars(21) | format("%-21s") %] [% sales_by_menus.menus.products.$menu_name.products.$prod_name.total | format("%.2f") | format("%7s") %] ([% sales_by_menus.menus.products.$menu_name.products.$prod_name.total_qttys.myround_qtty | format("%.2f") | format("%7s") %])
[% END -%]
[% END -%]

[% i18n("Total") | format("%-22s") %] [% sales_by_menus.menus.total | format("%.2f") | format("%7s") %] ([% sales_by_menus.menus.total_qttys.myround_qtty | format("%.2f") | format("%7s") %])
[% END -%]
[% IF sales_by_menus.by_product.products.keys.size > 0 -%]
----------------------------------------
      [% i18n("VENDAS DE ARTIGOS EM MENU") %]
----------------------------------------
[% FOREACH is_menu IN sales_by_menus.by_product.products.keys.sort.reverse -%]
[% FOREACH prod_name IN sales_by_menus.by_product.products.$is_menu.keys.sort -%]
[% prod_name.chars(22) | format("%-22s") %] [% sales_by_menus.by_product.products.$is_menu.$prod_name.total | format("%.2f") | format("%7s") %] ([% sales_by_menus.by_product.products.$is_menu.$prod_name.total_qttys.myround_qtty | format("%.2f") | format("%7s") %])
[% END -%]
[% END -%]

[% i18n("Total") | format("%-22s") %] [% sales_by_menus.by_product.total | format("%.2f") | format("%7s") %] ([% sales_by_menus.by_product.total_qttys.myround_qtty | format("%.2f") | format("%7s") %])
[% END -%]
