{% extends "base.html" %} {% from "_macros.html" import money, pdf_lang_picker %} {% block title %}{{ quote.quote_no }}{% endblock %} {% block body_data %}data-page-type="quote" data-page-id="{{ quote.id }}" data-page-label="{{ quote.quote_no }}" data-page-sub="{{ quote.customer_name_snapshot }}"{% endblock %} {% block breadcrumb %}

Angebote / {{ quote.quote_no }}

{% endblock %} {% block heading %}{{ quote.quote_no }} · {{ quote.customer_name_snapshot }}{% endblock %} {% block topbar_actions %} {{ STATUS_LABELS.get(quote.status, quote.status) }} {{ pdf_lang_picker('quotes', quote.id, quote.lang or 'de') }} Angebot PDF
Per Mail senden {% if quote.status in ('draft', 'sent') and not quote.converted_sales_order_id %}
{% elif quote.converted_sales_order_id %} Auftrag {{ quote.converted_order_no or '' }} öffnen {% endif %} {% endblock %} {% block content %} {% include "_workflow_stepper.html" %}

Stammdaten

Kunde

{{ quote.customer_name_snapshot }}

{{ quote.customer_country_iso_snapshot or '—' }} {% if quote.customer_vat_id_snapshot %}· {{ quote.customer_vat_id_snapshot }}{% endif %} {% if not quote.is_business_snapshot %}· B2C{% endif %}

Belegdaten

Datum: {{ quote.quote_date }}

Gültig bis: {{ quote.valid_until or '—' }}

{% if quote.customer_reference %}

Ihre Anfrage-Nr.: {{ quote.customer_reference }}

{% endif %} {% if quote.source_inquiry_no %}

aus Anfrage {{ quote.source_inquiry_no }}

{% endif %}
{% if quote.notes %}

Notiz / Konditionen

{{ quote.notes }}

{% endif %}

Positionen

{{ lines|length }} {% if lines|length == 1 %}Position{% else %}Positionen{% endif %}

{% for ln in lines %} {# Lazy-loaded breakdown row — wird via JS gefüllt #} {% if ln.item_id %} {% endif %} {% endfor %} {% if quote.vat_amount %} {% endif %}
# Beschreibung Menge Einh. Einzelpr. Rabatt Lieferzeit USt Netto
{{ ln.line_no }}
{{ ln.description }}
{% if ln.item_ident %}
{{ ln.item_ident }}
{% endif %}
{{ "%.0f"|format(ln.qty) if ln.qty == ln.qty|int else "%.2f"|format(ln.qty) }} {{ ln.unit }} {{ money(ln.unit_price) }} {{ "%.0f"|format(ln.discount_pct) if ln.discount_pct else '—' }}{% if ln.discount_pct %} %{% endif %} {% if ln.lead_time_days %}{{ ln.lead_time_days }} T{% else %}—{% endif %} {% if ln.vat_kind == 'eu_b2b_reverse' %}RC {% elif ln.vat_kind == 'export' %}Export {% else %}{{ "%.0f"|format(ln.vat_rate) }} %{% endif %} {{ money(ln.line_total_net) }}
Zwischensumme netto {{ money(quote.subtotal_net) }}
USt {{ money(quote.vat_amount) }}
Gesamtbetrag {{ money(quote.total_gross) }} {{ quote.currency }}
{# ============== PDF-VORSCHAU ============== #}

PDF-Vorschau

Live-Rendering aus den Belegdaten — wird mit jedem Status-Wechsel aktualisiert

Status

{{ STATUS_LABELS.get(quote.status, quote.status) }}

{% if not quote.converted_sales_order_id %}
{% endif %}
Erstellt: {{ quote.created_at[:16] }}
{% if quote.sent_at %}Versendet: {{ quote.sent_at[:16] }}
{% endif %} {% if quote.accepted_at %}Angenommen: {{ quote.accepted_at[:16] }}
{% endif %} {% if quote.rejected_at %}Abgelehnt: {{ quote.rejected_at[:16] }}
{% endif %}
{% if quote.converted_sales_order_id %}

Konvertiert

→ Auftrag {{ quote.converted_order_no or '#'~quote.converted_sales_order_id }}

Auftrag öffnen
{% endif %}
{# v1.12.2: Drag&Drop für Anhänge #} {% with attach_entity_type='quote', attach_entity_id=quote.id, attach_title='Zeichnungen & Beilagen' %} {% include '_attachments_dropzone.html' %} {% endwith %} {% endblock %}