{% extends "base.html" %} {% block title %}{{ t('Journal') }}{% endblock %} {% block content %}

{{ t('Journal') }} {{ year }} {% if year_closed %}{{ t('abgeschlossen') }}{% endif %}

{{ t('CSV-Export') }} + {{ t('Neue Buchung') }}
{% if rows %} {% if view_mode == 'einfach' %} {% else %} {% endif %} {% for e in rows %} {% if view_mode == 'einfach' %} {% else %} {% endif %} {% endfor %}
{{ t('Datum') }}{{ t('Text') }}{{ t('Geldfluss (von → für)') }}{{ t('Soll') }}{{ t('Haben') }}CHF{{ t('Beleg') }}
{{ e.date|datum }} {{ e.text }} {% if e.invoice_number %}Re {{ e.invoice_number }}{% endif %} {% if e.source not in ('manuell',) %}{{ t(SOURCE_LABELS.get(e.source, e.source)) }}{% endif %} {% if e.stornoed_by %}{{ t('storniert') }}{% endif %} {{ e.credit_name }} {{ e.debit_name }} {{ e.debit_number }} {{ e.credit_number }}{{ e.amount_rp|chf }} {% if e.receipt_number %} {{ e.receipt_number }} {% endif %} {% if not e.stornoed_by and not e.storno_of and not e.closing_year and not year_closed %}
{% endif %}
{{ t('{n} Buchungen (Stornopaare heben sich in den Salden auf)', n=rows|length) }}
{% else %}

{{ t('Keine Buchungen für') }} {{ year }}{% if q %} {{ t('mit') }} «{{ q }}»{% endif %}.

{% endif %} {% endblock %}