{% macro renderResult(result) %}
{% import _self as taxMacros %}
{{ taxMacros.renderItems(result) }}
{{ taxMacros.renderTaxes(result) }}
{% endmacro %}
{% macro _renderItemsHead() %}
{% endmacro %}
{% macro renderItems(result) %}
{% import _self as taxMacros %}
{% if result is defined and result|length %}
{{ 'oro.tax.result.short.includingTax'|trans }}
{{ 'oro.tax.result.short.excludingTax'|trans }}
{{ 'oro.tax.result.short.taxAmount'|trans }}
{{ 'oro.tax.result.%s'|format(type)|trans }} | {{ data.includingTax|oro_format_currency({currency: data.currency}) }} | {{ data.excludingTax|oro_format_currency({currency: data.currency}) }} | {{ data.taxAmount|oro_format_currency({currency: data.currency}) }} |
{{ tax.tax }} | {{ tax.rate|oro_format_percent({ attributes: { FRACTION_DIGITS: CALCULATION_SCALE_AS_PERCENT, MIN_FRACTION_DIGITS: 0, MAX_FRACTION_DIGITS: CALCULATION_SCALE_AS_PERCENT } }) }} | {{ tax.taxableAmount|oro_format_currency({currency: tax.currency}) }} | {{ tax.taxAmount|oro_format_currency({currency: tax.currency}) }} |
<%= translations[key] %> | <%= item.includingTax %> | <%= item.excludingTax %> | <%= item.taxAmount %> |
<%= tax.tax %> | <%= tax.rate %> | <%= tax.taxableAmount %> | <%= tax.taxAmount %> |