{{ 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 }} |
|
{# 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 %}