{% extends "base.html" %} {% block title %}{{ item.ident }} — Baugruppe{% endblock %} {% block heading %} Baugruppe · {{ item.ident }} {% endblock %} {% block breadcrumb %}
Baugruppen / {{ item.ident }}
{% endblock %} {% block topbar_actions %} BOM-Editor Stückliste drucken (PDF) Artikel-Daten bearbeiten Angebot daraus {% endblock %} {% block content %} {# === Header-Kachel mit Kerndaten === #}| Ident / Artikel-Nr | {{ item.ident or '—' }} |
|---|---|
| Bezeichnung | {{ item.description or '—' }} |
| Artikel-Typ | {{ ITEM_TYPE_LABELS.get(item.item_type, item.item_type) or '—' }} |
| Source-App | {{ item.source_app or '—' }} |
| Aktive BOM |
{% if active_bom %}
v{{ active_bom.version }} · {{ bom_lines|length }} Positionen
{% if active_bom.note %} {{ active_bom.note }}{% endif %} {% else %} Noch keine BOM — BOM jetzt anlegen → {% endif %} |
| Aktueller Bestand | {{ item.quantity_total if item.quantity_total is not none else '—' }} |
| Mindest-Bestand | {{ item.quantity_min if item.quantity_min is not none else '—' }} |
| Bestellt | {{ item.on_order if item.on_order is not none else '—' }} |
Zum Bearbeiten von Stammdaten: → Artikel bearbeiten
| Pos | Komponente | Menge | Einheit | €/Einheit | Gesamt |
|---|---|---|---|---|---|
| {{ loop.index * 10 }} | {% if line.line_type == 'sub_assembly' %} Sub-Baugruppe {{ line.sub_ident or '—' }} ↗ {% if line.sub_desc %} · {{ line.sub_desc }}{% endif %} {% elif line.line_type == 'material' %} {{ line.material_name or '—' }} {% if line.material_code %} · {{ line.material_code }}{% endif %} {% elif line.line_type == 'operation' %} Operation {{ line.step_name or '—' }} {% if line.machine_name %} · {{ line.machine_name }}{% endif %} {% elif line.line_type == 'tool' %} Werkzeug {{ line.tool_ident or '—' }} {% else %} {{ line.description or line.material_name or '—' }} {% endif %} | {{ line.qty }} | {% if line.line_type == 'material' %}kg/Stk {% elif line.line_type == 'sub_assembly' %}Stk/Stk {% else %}{{ line.unit or 'Stk' }}{% endif %} | {{ "%.2f"|format(line.unit_price or 0) }} € | {{ "%.2f"|format((line.qty or 0) * (line.unit_price or 0)) }} € |
| Material-Summe: | {{ "%.2f"|format(costing.material_cost if costing else 0) }} € | ||||
Noch keine Positionen — BOM-Editor öffnen →
{% endif %} {% if boms|length > 1 %}{{ boms|length }} BOM-Versionen vorhanden (älter = archiviert). Versions-Historie ansehen →
{% endif %}Arbeitsschritte mit Maschinen-Zuordnung, Rüst- und Bearbeitungs-Zeiten — Voraussetzung für realistische Kostenkalkulation und Werkstatt-Planung.
{% if costing %}| Pos | Arbeitsschritt | Maschine / Arbeitsplatz | Rüstzeit | Stückzeit | Stundensatz | Kosten |
|---|---|---|---|---|---|---|
|
⚙️ Detaillierter Fertigungs-Plan im Modul Rüstpläne hinterlegen.
Geschätzte Gesamt-Selbstkosten (Material + Fertigung): {{ "%.2f"|format(costing.total_cost or 0) }} € |
||||||
Keine BOM vorhanden — kein Kalkulations-Vergleich möglich.
{% endif %}2D-Fertigungszeichnungen, 3D-CAD-Modelle, Werkstoff-Zertifikate, Mess-Pläne, EMPB/PPAP — alles versioniert im DMS.
Dokumente zu diesem Artikel werden im DMS verwaltet:
📐 DMS für {{ item.ident }} öffnen
Unterstützte Formate: PDF, DWG, DXF, STEP, STL, 3MF, IGES, Fotos
Mit Versionierung, Verfallsdatum, Bulk-ZIP-Download
| Reklamation-Nr | Typ | Status | Eröffnet | Beschreibung | |
|---|---|---|---|---|---|
| {{ c.complaint_no or c.id }} | {{ c.kind }} | {{ c.status }} | {{ (c.opened_at or '')[:10] }} | → |
✓ Keine offenen Reklamationen für diese Baugruppe.
{% endif %}| Aktueller Bestand | {{ item.quantity_total if item.quantity_total is not none else '—' }} |
|---|---|
| Mindest-Bestand | {{ item.quantity_min if item.quantity_min is not none else '—' }} |
| Bestellt (in Bestellung) | {{ item.on_order if item.on_order is not none else 0 }} |
| Status | {% if item.quantity_min and item.quantity_total <= item.quantity_min %} ⚠️ Bestand unter Mindest-Bestand — Bestellvorschlag prüfen {% else %} ✓ Bestand OK {% endif %} |
| Kunde | Bestellungen | Σ Menge | Ø Preis | Letzter Kauf | |
|---|---|---|---|---|---|
| {{ c.customer_name or '—' }} | {{ c.n_invoices }} | {{ (c.total_qty or 0)|int }} | {{ "%.2f"|format(c.avg_price or 0) }} € | {{ (c.last_purchase or '')[:10] }} | Kunde → |
Noch keine Verkäufe für diese Baugruppe erfasst.
{% endif %} {% if sales_history %}| Datum | Rechnung-Nr | Kunde | Menge | €/Stk | Σ Netto |
|---|---|---|---|---|---|
| {{ (s.issue_date or '')[:10] }} | {{ s.invoice_no or '—' }} | {{ s.customer_name or '—' }} | {{ (s.qty or 0)|int }} | {{ "%.2f"|format(s.unit_price or 0) }} € | {{ "%.2f"|format(s.line_total_net or 0) }} € |
Audit-Log aller Änderungen an dieser Baugruppe (Wer hat wann was geändert).
{% if audit_entries %}| Zeit | User | Aktion | Details |
|---|---|---|---|
| {{ (a.created_at or '')[:16] }} | {{ a.user_name or '—' }} | {{ a.action }} | {{ a.note or '—' }} |
Noch keine Audit-Einträge.
{% endif %} {% if boms|length > 1 %}| Version | Status | Erstellt | Aktualisiert | Notiz |
|---|---|---|---|---|
| v{{ b.version }} | {% if b.is_active %}aktiv{% else %}archiviert{% endif %} | {{ (b.created_at or '')[:16] }} | {{ (b.updated_at or '')[:16] }} | {{ b.note or '—' }} |