Produtos a entregar (Delivery)
[% IF products_to_deliver.dates.keys.size > 0 -%]
----------------------------------------
       [% i18n("PRODUTOS A ENTREGAR") %]
----------------------------------------
[% FOREACH date IN products_to_deliver.dates.keys.sort -%]
[% date | format("%-32s") %] [% products_to_deliver.dates.$date.total_qttys | format("%.2f") | format("%7s") %]
----------
[% i18n("POR PRODUTO") %]
[% FOREACH product IN products_to_deliver.dates.$date.products.keys.sort -%]
  [% product.chars(22) | format("%-30s") %] [% products_to_deliver.dates.$date.products.$product.total_qttys | format("%.2f") | format("%7s") %]
[% END -%]
[% i18n("TOTAL") | format("%-32s") %] [% products_to_deliver.total_qttys | format("%.2f") | format("%7s") %]

[% i18n("POR CLIENTE / PRODUTO") %]

[% FOREACH customer IN products_to_deliver.dates.$date.customers.keys.sort -%]
[% customer %]
[% FOREACH doc IN products_to_deliver.dates.$date.customers.$customer.docs.keys.sort -%]
[% doc %]
[% FOREACH product IN products_to_deliver.dates.$date.customers.$customer.docs.$doc.products.keys.sort -%]
  [% product.chars(22) | format("%-30s") %] [% products_to_deliver.dates.$date.customers.$customer.docs.$doc.products.$product.total_qttys | format("%.2f") | format("%7s") %]
[% END -%]
[% END -%]
[% i18n("TOTAL") | format("%-32s") %] [% products_to_deliver.dates.$date.customers.$customer.total_qttys | format("%.2f") | format("%7s") %]

[% END -%]
[% END -%]
[% END -%]
