Mapa de IVA periodo - v1
[% IF sales_vat2.vats.keys.size > 0 -%]
----------------------------------------
       [% i18n("MAPA DE IVA PERIODO - v1") %]
----------------------------------------
[% IF sales_vat2.received.vats.keys.size > 0 -%]
[% i18n("RECEBIDO") %]
========
[% i18n("TAXA") %]         [% i18n("BASE") %]        [% i18n("IVA") %]       [% i18n("TOTAL") %]
[% FOREACH vat IN sales_vat2.received.vats.keys.nsort -%]
[% vat | format("%.2f") | format("%6s") %]    [% sales_vat2.received.vats.$vat.total_wo_vat | format("%.2f") | format("%8s") %]  [% sales_vat2.received.vats.$vat.total_vat | format("%.2f") | format("%8s") %]   [% sales_vat2.received.vats.$vat.total | format("%.2f") | format("%9s") %]
[% END -%]
[% IF sales_vat2.received.vats.keys.size > 1 -%]

[% i18n("TOTAL") %]     [% sales_vat2.received.total_wo_vat | format("%.2f") | format("%8s") %]  [% sales_vat2.received.total_vat | format("%.2f") | format("%8s") %]   [% sales_vat2.received.total | format("%.2f") | format("%9s") %]
[% END -%]
[% END -%]
[% IF sales_vat2.payed.vats.keys.size > 0 -%]

[% i18n("PAGO") %]
====
[% i18n("TAXA") %]         [% i18n("BASE") %]        [% i18n("IVA") %]       [% i18n("TOTAL") %]
[% FOREACH vat IN sales_vat2.payed.vats.keys.nsort -%]
[% vat | format("%.2f") | format("%6s") %]    [% sales_vat2.payed.vats.$vat.total_wo_vat | format("%.2f") | format("%8s") %]  [% sales_vat2.payed.vats.$vat.total_vat | format("%.2f") | format("%8s") %]   [% sales_vat2.payed.vats.$vat.total | format("%.2f") | format("%9s") %]
[% END -%]
[% IF sales_vat2.payed.vats.keys.size > 1 -%]

[% i18n("TOTAL") %]     [% sales_vat2.payed.total_wo_vat | format("%.2f") | format("%8s") %]  [% sales_vat2.payed.total_vat | format("%.2f") | format("%8s") %]   [% sales_vat2.payed.total | format("%.2f") | format("%9s") %]
[% END -%]
[% END -%]

[% i18n("IVA A ENTREGAR") %][% sales_vat2.received.total_vat - sales_vat2.payed.total_vat | format("%.2f") | format("%14s") %]
[% END -%]
