{% extends "layout.html" %} {% block title %}Lagerbestand & Dashboard - Elektro-Materialverwaltung{% endblock %} {% block content %}
{% if low_stock_articles %}

Achtung: {{ low_stock_articles|length }} Artikel haben den Mindestbestand erreicht oder unterschritten!

Folgende Materialien sollten zeitnah beim Großhandel nachbestellt werden:

{% for item in low_stock_articles %} {{ item.name }}: {{ item.quantity|round(1) }} / Min. {{ item.min_quantity|round(1) }} {{ item.unit }} {% endfor %}
{% endif %}

Lagerwert gesamt

{{ "%.2f"|format(stats.total_inventory_value)|replace('.', ',') }} €

Artikeltypen im Lager

{{ stats.article_count }} ({{ stats.total_items|round(1) }} Pos.)

Unter Mindestbestand

{{ stats.low_stock_count }} Artikel

Baustellen-Entnahmen

{{ stats.withdrawals_count }} Buchungen

Neuer Einkauf vom Elektrogroßhandel

Rechnung/Lieferschein als Foto oder PDF hochladen. Positionen werden automatisch erkannt und vor dem Speichern zur Kontrolle angezeigt.

Lagerbestand (Zentrallager)

{{ articles|length }} Artikel
{% if search_query %} {% endif %}
Excel-Export {% if low_stock_articles %} Bestellvorschlag {% endif %} Backup (.db) {% if articles %} {% endif %}
{% for art in articles %}

{{ art.name }}

EK: {{ "%.2f"|format(art.purchase_price)|replace('.', ',') }} € • Mindest: {{ art.min_quantity|round(1) }} {{ art.unit }} {% if art.barcode %}• EAN: {{ art.barcode }}{% endif %}
{% if art.quantity <= 0 %} 0 {{ art.unit }} {% elif art.quantity <= art.min_quantity %} ⚠️ {{ art.quantity|round(1) }} {{ art.unit }} {% else %} {{ art.quantity|round(1) }} {{ art.unit }} {% endif %}
Gesamtwert: {{ "%.2f"|format(art.quantity * art.purchase_price)|replace('.', ',') }} €
{% else %}
Keine Artikel im Lager vorhanden.
{% endfor %}
{% endblock %}