Lucro por Artigo
[% IF sales_by_cost.products.keys.size > 0 -%]
----------------------------------------
        [% i18n("LUCRO POR ARTIGO") %]
----------------------------------------
ARTIGO            CUSTO  VENDA   LUCRO
[% FOREACH prod_name IN sales_by_cost.products.keys.sort -%]
[% prod_name.chars(15) | format("%-15s") %] [% sales_by_cost.products.$prod_name.value_by_cost | format("%.2f") | format("%7s") %] [% sales_by_cost.products.$prod_name.value_by_sale | format("%.2f") | format("%7s") %] [% sales_by_cost.products.$prod_name.value_diff | format("%.2f") | format("%7s") %]
[% END -%]

[% i18n("Total") | format("%-15s") %] [% sales_by_cost.total_costs | format("%.2f") | format("%7s") %] [% sales_by_cost.total_sales | format("%.2f") | format("%7s") %] [% sales_by_cost.total_diff | format("%.2f") | format("%7s") %]
[% END -%]
