{% extends "base.html" %} {% block title %}{{ t('ZATCA e-invoicing') }}{% endblock %} {% block content %}
{{ t('Fatoora phase 2: invoices of Saudi branches are signed, given a QR code and cleared or reported to ZATCA.') }}
{{ t('Each unit has its own certificate and invoice counter. The branch unit signs back-office invoices and, unless a register has its own, POS receipts.') }}
| {{ t('Unit') }} | {{ t('Status') }} | {{ t('Invoices signed') }} | {{ t('Certificate valid until') }} | |
|---|---|---|---|---|
| {{ u.name }} {{ u.serial }} |
{% if u.state == 'active' %}{{ t('Active') }}{% elif u.state == 'compliance' %}{{ t('Compliance checks') }}{% else %}{{ t('Not onboarded') }}{% endif %}
{% if u.last_error %} {{ u.last_error }} {% endif %} |
{{ u.icv }} | {{ u.cert_expiry or '—' }} | {% if u.state != 'active' %} {% else %} {% endif %} |
| {{ t('No unit yet.') }} | ||||
{{ t('ZATCA e-invoicing applies to branches in Saudi Arabia (SAR).') }}
{% endif %}| {{ t('Document') }} | {{ t('Type') }} | {{ t('Unit') }} | {{ t('Signed at') }} | {{ t('Total') }} | {{ t('Status') }} | |
|---|---|---|---|---|---|---|
| {{ d.number }} | {{ t('Standard (B2B)') if d.subtype == 'standard' else t('Simplified (B2C)') }} · {{ t({'invoice': 'Invoice', 'credit': 'Credit Note', 'debit': 'Debit Note', 'prepayment': 'Advance invoice'}[d.doc_type]) }} | {{ d.unit_name }} | {{ d.issued_at|replace('T', ' ') }} | {{ d.total|money(d.currency) }} | {% set st = {'cleared': 'st-posted', 'reported': 'st-posted', 'pending': 'st-warn', 'rejected': 'st-cancelled'}[d.status] %}{{ t(d.status|capitalize) }}
{% if d.msgs.errors %} {{ d.msgs.errors|join('; ') }} {% endif %}
{% if d.warnings %}{{ d.warnings }} {{ t('warning(s)') }}{% endif %} |
XML {% if d.status == 'pending' %}{% endif %} |
| {{ t('Nothing here.') }} | ||||||