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

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

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

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

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