{% extends "base.html" %} {% block content %}

{{ t('vat_title') }} – {{ t('vat_quarter_n', n=quarter) }} {{ year }}

{{ unit_name }} · {{ r.first|date }} – {{ r.last|date }}

{{ t('vat_intro') }}

{% for s in r.sections %}

{{ t('col_room') }} {{ s.room }}

{% for x in s.rows %} {#- a monthly rent may carry only a 'bis' #} {% endfor %}
{{ t('col_paid_date') }}{{ t('col_occupant') }}{{ t('col_period') }} {{ t('hd_invoice') }}{{ t('col_payer') }}{{ t('col_amount') }}
{{ x.received_on|date }} {{ x.occupant or '' }} {%- if x.storno %} {{ t('vat_storno') }}{% endif %} {%- if x.received < x.amount %} {{ t('vat_part') }}{% endif %}{% if x.period_from and x.period_to %}{{ x.period_from|date }}–{{ x.period_to|date }} {%- elif x.period_to %}{{ t('period_until', date=x.period_to|date) }} {%- elif x.period_from %}{{ t('period_since', date=x.period_from|date) }}{% endif %} {{ x.invoice_no or '' }}{{ x.payer or '' }} {{ x.received|euro }}
{{ t('vat_room_sum', room=s.room) }}{{ s.sum|euro }}
{% else %}

{{ t('vat_empty') }}

{% endfor %} {% if r.sections %}

{{ t('vat_total_title') }}

{% if r.storno %}{% endif %}
{{ t('vat_total') }}{{ r.total|euro }}
{{ t('vat_storno_sum') }}− {{ r.storno|euro }}
{{ t('vat_gross') }}{{ r.gross|euro }}
{{ t('vat_tax') }}{{ r.vat|euro }}
{{ t('vat_net') }}{{ r.net|euro }}
{% endif %} {% endblock %}