{% extends "base.html" %} {% block main_class %}grid-page{% endblock %} {% block content %}
| {{ t('hd_room') }} | {{ t('col_from') }} | {{ t('col_to') }} | {{ t('hd_gb') }} | {{ t('col_occupant') }} | {{ t('col_days') }} | {{ t('col_rate') }} | {{ t('hd_qty') }} | {{ t('hd_persons') }} | {{ t('col_amount') }} | {{ t('col_tourism_tax') }} | {{ t('hd_payer') }} | {{ t('col_art') }} | {{ t('hd_invoice') }} | {{ t('hd_invoice_date') }} | {{ t('col_payment') }} | {{ t('hd_paid_date') }} | {{ t('col_notes') }} | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ r.room or '' }} | {%- set year = (r.first_date or '')[:4] %} {#- the weekday before the date, to be seen at a glance. data-k keeps the sort: makeKey only recognises a bare DD.MM.YYYY; with "Mo " in front it would sort alphabetically -#}{{ r.period_from|datewd }} | {#- 'noch da' = a running occupancy: Von set, no Bis, and either a Gästeblatt number or not billed yet. 'Bereitstellung'/'Storno' rows without Bis are settled items, not people in the house. -#}{{ r.period_to|datewd }} | {{ r.gb_ref or '' }} | {{ r.occupant or '' }} | {{ r.days if r.days is not none else '' }} | {{ r.gross_per_unit|num if r.gross_per_unit else '' }} | {{ (r.quantity|num(0) if r.quantity % 1 == 0 else r.quantity|num(1)) if r.quantity is not none else '' }} | {{ r.persons|num(0) if r.persons }} | {{ r.amount|euro }} | {{ r.tourism_tax|euro if r.tourism_tax else '' }} | {{ r.payer or '' }} | {{ r.art or '' }} | {% if r.invoice_id %}{{ r.invoice_no }} {% else %}{{ r.invoice_no or '' }}{% endif %} | {{ r.invoice_date|date }} | {#- paid or open: repo._payment — the Umsatzsteuer list reads the same rule -#} {%- set payment = r.payment %} {#- data-f: the filter asks for the STATE, even when text stands beside it (the part payment) — without it "OFFEN" would miss exactly these rows -#}{%- if payment == 'unknown' %}{{ t('payment_unknown') }} {%- else %}{{ t('payment_' + payment) }}{% endif %} {%- if r.open_amount %} {{ t('payment_part', paid=r.paid_amount|euro, open=r.open_amount|euro) }}{% endif %} | {#- without a date of the row's own, this shows when the INVOICE was paid -#}{{ r.paid_on|date }} | {{ r.notes or '' }} | {{ t('btn_edit') }} | |
| {{ t('no_results') }} | |||||||||||||||||||