{% set notPourcentTaxName = ['tax.name.exo','tax.name.marge','tax.name.neutral','tax.name.exemption'] %} {% for key, taxTab in sellingTaxData.groupByTaxName %} {% set afterTaxname = key in notPourcentTaxName ? null : '%' %} {% endfor %}
{{ 'tax.header.table'|trans({}, 'DocumentTrans' ) }} {{ 'tax.header.base'|trans({}, 'DocumentTrans' ) }} {{ 'tax.header.amount'|trans({}, 'DocumentTrans' ) }}
{{ key|trans({}, 'DocumentTrans') ~ afterTaxname }} {{ taxTab.priceWithoutTax|number_format(2, ',', ' ') ~ " " ~ currencySymbol }} {{ taxTab.taxValue|number_format(2, ',', ' ') ~ " " ~ currencySymbol }}
{{ 'tax.total'|trans({}, 'DocumentTrans' ) }} {{ sellingTaxData.totalTax|number_format(2, ',', ' ') ~ " " ~ currencySymbol }}