{% extends "base.html" %} {% block title %}Eingangsrechnung {{ inv.invoice_no or '?' }}{% endblock %} {% block heading %}🧾 Eingangsrechnung {{ inv.invoice_no or '(unbekannt)' }}{% endblock %} {% block breadcrumb %}

Eingangsrechnungen / {{ inv.invoice_no or inv.id }}

{% endblock %} {% block topbar_actions %} {{ inv.status }} {% if inv.attachment_id %} 📄 Original-PDF {% endif %} {% endblock %} {% block content %}

Original-PDF

OCR-Engine: {{ inv.ocr_engine }} · Confidence: {% if inv.ocr_confidence %} {% set pct = (inv.ocr_confidence * 100)|round|int %} {{ pct }} % {% else %}—{% endif %}

{% if inv.attachment_id %} {% else %}

Kein PDF hinterlegt.

{% endif %} {% if inv.ocr_text %}
OCR-Roh-Text anzeigen
{{ inv.ocr_text[:5000] }}
{% endif %}

Erkannte Werte

Bitte vor Buchung prüfen

{% if inv.vendor_name_raw and not inv.vendor_id %}

OCR erkannt: „{{ inv.vendor_name_raw }}" — bitte zu vorhandenem Lieferant zuordnen.

{% endif %}
{% if inv.status == 'draft' %} {% endif %} {% if inv.status in ('draft', 'reviewed') %} {% endif %}
{% endblock %}