{% for appartment in positionsApartment %} {# check whether there are different prices used, e.g. one uses uses includes vat and one not #} {% if lastIncludesVat is not null and lastIncludesVat != appartment.includesVat %} {% set vatWarning = true %} {% endif %} {% set lastIncludesVat = appartment.includesVat %} {% endfor %}
{{ 'invoice.position.appartment'|trans }} {{ 'invoice.position.amount'|trans }} {{ 'invoice.price.single'|trans }} {{ 'invoice.vat'|trans }} {{ 'invoice.price.total'|trans }}
{{ appartment.description }} ({{ 'invoice.appartment.persons'|trans({'%count%': appartment.persons }) }})
{{ appartment.startDate|date('d.m.Y') }} - {{ appartment.endDate|date('d.m.Y') }}
{{ appartment.amount }} {{ appartment.price|number_format(2, ',', '.') }} {% if is_decimal_place_0(appartment.vat) %} {{ appartment.vat|number_format(0, ',', '.') }} {% else %} {{ appartment.vat|number_format(2, ',', '.') }} {% endif %} {{ appartment.totalPrice }}
{{ apartmentTotal|number_format(2, ',', '.') }}