{% set liabilities, unlinked, vat_total, today = extension.vat_status() %} {% set open_invoices = extension.open_receivables() %} {% set staging = extension.staging() %} {% set inbox = extension.inbox() %}

VAT outstanding · {{ today }}

{% if not liabilities and not unlinked %}

Nothing outstanding — all filed VAT is paid. ✓

{% else %} {% for l in liabilities %} {% endfor %} {% if unlinked %} {% endif %}
PeriodOwed CHF DueDays left
{{ l.period }} {{ l.owed }} {{ l.due or "—" }} {{ l.days_left if l.days_left is not none else "—" }}
(unlinked){{ unlinked }}
Total{{ vat_total }}
{% endif %}

Open receivables

{% if not open_invoices %}

Nothing open — every invoice is settled. ✓

{% else %} {% for o in open_invoices %} {% endfor %}
InvoicePayee DateAge (d) Open
{{ o.number }} {{ o.payee }} {{ o.invoice_date }} 30 %} style="color: var(--budget-negative)"{% endif %}>{{ o.age_days }} {{ o.open_amount }} {{ o.currency }}
{% endif %}

Review queue

{% if not staging and not inbox %}

Inbox and staging are empty. ✓

{% else %} {% if staging %} {% for name, total, flagged in staging %} {% endfor %}
Staging fileDraftsNeeds decision (!)
{{ name }}{{ total }}{{ flagged }}
{% endif %} {% if inbox %}

Inbox — {{ inbox | length }} document(s):

{% endif %} {% endif %}