{% extends "base.html" %} {% from "_macros.html" import app_pill, order_status_badge, money %} {% block title %}{{ order.ident }}{% endblock %} {% block breadcrumb %}

Bestellungen / {{ order.ident }}

{% endblock %} {% block heading %}{{ order.ident }}{% endblock %} {% block topbar_actions %} {{ app_pill(order.source_app) }} {{ order_status_badge(order.status) }} PDF öffnen {% if order.status == 'open' %}
{% endif %} {% endblock %} {% block content %}

Bestellpositionen

{{ lines|length }} Position(en)

Gesamt

{{ money(lines|sum(attribute='line_value')) }}

{% if lines %} {% for l in lines %} {% endfor %}
Artikel Lieferant Menge Original Stückpreis Wert Status
{{ l.item_ident }}
{{ l.item_description }}
{{ l.vendor_name or '—' }} {{ l.quantity }} {{ l.quantity_orig }} {{ money(l.price) }} {{ money(l.line_value) }} {% if l.is_open %} Offen {% else %} Eingebucht {% endif %}
{% else %}
Keine Positionen.
{% endif %}
{% if order.status == 'open' %}

Hinweis

"Wareneingang buchen" oben rechts erhöht den Bestand aller offenen Positionen entsprechend und schreibt zwei Historien-Einträge je Position (Wareneingang + Einlagerung).

{% endif %} {% endblock %}