{% extends "base.html" %} {% block title %}Baugruppen{% endblock %} {% block heading %}Baugruppen{% endblock %} {% block topbar_actions %} + Neue Baugruppe {% endblock %} {% block content %}
{% if q or item_type or status %} × Zurücksetzen {% endif %} {{ assemblies|length }} Baugruppe{% if assemblies|length != 1 %}n{% endif %}
{% if assemblies %} {% for a in assemblies %} {% endfor %}
Ident Bezeichnung Typ BOM Pos. Bestand Ø Preis Σ verkauft Kunden Letzter Verkauf Status
{{ a.ident or '—' }} {{ a.description or '—' }} {% if a.item_type %} {{ ITEM_TYPE_LABELS.get(a.item_type, a.item_type) }} {% endif %} {% if a.active_version %} v{{ a.active_version }} {% else %} {% endif %} /{{ a.bom_count }} {{ a.line_count or 0 }} {% if a.quantity_total is not none %} {{ a.quantity_total }} {% if a.quantity_min %} / min {{ a.quantity_min }} {% endif %} {% else %} — {% endif %} {% if a.avg_sale_price %} {{ "%.2f"|format(a.avg_sale_price) }} € {% else %} {% endif %} {{ (a.total_sold_qty or 0)|int }} {% if a.customer_count %} {{ a.customer_count }} {% if a.customer_count == 1 %}Kunde{% else %}Kunden{% endif %} {% else %} {% endif %} {{ (a.last_sold_at or '')[:10] or '—' }} {% if a.open_complaints and a.open_complaints > 0 %} 🔴 {{ a.open_complaints }} Rekl. {% elif a.below_min %} ⚠️ Min {% elif a.active_version %} ✓ aktiv {% else %} inaktiv {% endif %} Detail →
{% else %}

{% if q or item_type or status %} Keine Baugruppen mit diesen Filtern gefunden {% else %} Noch keine Baugruppen angelegt {% endif %}

Eine Baugruppe entsteht, sobald ein Artikel eine Stückliste bekommt. Lege einen Artikel an und füge ihm im BOM-Tab Positionen hinzu.

{% if q or item_type or status %} × Filter zurücksetzen {% else %} + Neuen Artikel anlegen Zu allen Artikeln {% endif %}
{% endif %}
{% endblock %}