{{ position.description }} |
{{ position.amount }} |
{{ position.price|number_format(2, ',', '.') }} |
{% if is_decimal_place_0(position.vat) %}
{{ position.vat|number_format(0, ',', '.') }}
{% else %}
{{ position.vat|number_format(2, ',', '.') }}
{% endif %}
|
{{ position.totalPrice }} |
{# check whether there are different prices used, e.g. one uses uses includes vat and one not #}
{% if lastIncludesVat is not null and lastIncludesVat != position.includesVat %}
{% set vatWarning = true %}
{% endif %}
{% set lastIncludesVat = position.includesVat %}
{% endfor %}