Totais por Tipo de Documento
[% IF sales_by_doctype.doc_types.keys.size > 0 -%]
----------------------------------------
    [% i18n("TOTAIS POR TIPO DE DOCUMENTO") %]
----------------------------------------
[% FOREACH doc_type IN sales_by_doctype.doc_types.keys.sort -%]
[% doc_type | format("%-25s") %] [% sales_by_doctype.doc_types.$doc_type.num_docs | format("%5s") %] [% sales_by_doctype.doc_types.$doc_type.total | format("%.2f") | format("%8s") %]
--------------------------------
[% FOREACH product IN sales_by_doctype.doc_types.$doc_type.products.keys.sort -%]
  [% product.chars(23) %] [% sales_by_doctype.doc_types.$doc_type.products.$product.total_qttys | format("%5s") %] [% sales_by_doctype.doc_types.$doc_type.products.$product.total | format("%.2f") | format("%8s") %]
[% END -%]

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