{% extends "base.html" %} {% block title %}Rechnung erstellen — {{ order.order_no }}{% endblock %} {% block breadcrumb %}

Aufträge / {{ order.order_no }} / Rechnung

{% endblock %} {% block heading %}{% if kind == 'final' %}Schlussrechnung{% else %}Rechnung{% endif %} erstellen — {{ order.order_no }}{% endblock %} {% block content %} {% if kind == 'final' and prior_partials %}

Bisher geleistete Anzahlungen

{% set total_dp = 0 %}
{% for p in prior_partials %} {% set total_dp = total_dp + (p.paid_amount or 0) %}
{{ p.invoice_no }} gestellt {{ '%.2f'|format(p.total_gross or 0) }} € · bezahlt {{ '%.2f'|format(p.paid_amount or 0) }} €
{% endfor %}

Eingegangener Anzahlungsbetrag {{ '%.2f'|format(total_dp) }} € wird automatisch als negative Korrektur-Position auf der Schlussrechnung abgezogen.

{% endif %} {% if invoice_lines %}

Positionen abrechnen

Es können nur bereits gelieferte Mengen abgerechnet werden

{% for ln in invoice_lines %} {% endfor %}
# Beschreibung Bestellt Geliefert Bisher abgerechnet Abrechenbar Diesmal abrechnen Einh.
{{ ln.line_no }}
{{ ln.description }}
{% if ln.item_ident %}
{{ ln.item_ident }}
{% endif %}
{{ "%.0f"|format(ln.qty_ordered) if ln.qty_ordered == ln.qty_ordered|int else "%.2f"|format(ln.qty_ordered) }} {{ "%.0f"|format(ln.qty_delivered) if ln.qty_delivered == ln.qty_delivered|int else "%.2f"|format(ln.qty_delivered) }} {{ "%.0f"|format(ln.qty_invoiced) if ln.qty_invoiced == ln.qty_invoiced|int else "%.2f"|format(ln.qty_invoiced) }} {{ "%.2f"|format(ln.qty_to_invoice) }} {{ ln.unit }}

Rechnungs-Details

Default: Datum + {{ order.payment_terms_days }} Tage

Abbrechen
{% else %}

Es gibt keine abrechenbaren Positionen — entweder noch nichts geliefert oder bereits alles abgerechnet.

Zurück
{% endif %} {% endblock %}