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

{% if is_new %}{{ t('form_new_ledger') }}{% else %}{{ t('form_edit_ledger') }}{% if ch.room %} – {{ t('form_room', room=ch.room) }}{% endif %}{% endif %}

{% if is_new %}
{% endif %}
{# Payments in parts, each with date and amount (paid without the Ortstaxe, or in two instalments). For the usual ONE full payment "bezahlt am" above is enough. #}
{% for d, a in (ch.payments or []) %}
{% endfor %}
{{ t('hint_payments') }}
{% if not is_new %} {# month end: bill up to the invoice date and let the occupancy run on from that day #} {% endif %} {{ t('btn_cancel') }}
{% if ch.id %}
{% endif %} {% endblock %}