{% extends 'base.html' %} {% from 'macros.html' import due with context %} {% block title %}{{ a.name }}{% endblock %} {% block content %}
Lager{% if a.category %} · {{ a.category }}{% endif %}

{{ a.name }}{% if not a.active %} inaktiv{% endif %}

{{ [a.article_no, a.supplier, a.location]|select|join(' · ') }}
QR-Etikett {% if is_leitung %}Bearbeiten{% endif %}
{% if scan %}
📷 Gescannt{% if scan.lot %}: Charge {{ scan.lot }}{% endif %}{% if scan.expiry %} · verwendbar bis {{ scan.expiry|d }}{% endif %}. {% if scan.expired %}Achtung: Verfallsdatum überschritten!{% elif scan.lot_id %}Diese Charge ist am Lager – unten entnehmen.{% elif scan.lot and a.track_lots %}Diese Charge ist noch nicht gebucht – unten als Zugang einbuchen.{% else %}Unten entnehmen oder einbuchen.{% endif %}
{% endif %}
{{ a.stock|num }}
{{ a.unit }} auf Lager
{{ a.min_stock|num }}
Mindestbestand
{% if a.order_qty %}
{{ a.order_qty|num }}
übliche Bestellmenge
{% endif %}

Entnahme

{% if a.track_lots %}
{% endif %}

Zugang (Lieferung)

{% if a.track_lots %}
{% endif %}

Bestand {{ 'nach Charge' if a.track_lots else '' }}

{% if lots %}
{% if a.track_lots %}{% endif %}{% if is_leitung %}{% endif %}{% for l in lots %} {% if a.track_lots %}{% endif %} {% if is_leitung %}{% endif %} {% endfor %}
ChargeVerwendbar bisMengeInventur: Ist-Bestand
{{ l.lot_no or '–' }}{{ due(l.expiry, 30) if l.expiry else '–' }}{{ l.quantity|num }} {{ a.unit }}{% if l.expiry and due_status(l.expiry, 0) == 'overdue' %} {% endif %}
{% if is_leitung %}
nur ausgefüllte Felder werden übernommen
{% endif %}
{% else %}
Kein Bestand.
{% endif %}

Bewegungen

{% if moves %} {% if a.track_lots %}{% endif %}{% for m in moves %} {% if a.track_lots %}{% endif %} {% endfor %}
ZeitArtMengeChargeWerNotiz
{{ m.created_at|d }}{{ STOCK_KINDS.get(m.kind, m.kind) }} {{ '+' if m.delta > 0 }}{{ m.delta|num }}{{ m.lot.lot_no if m.lot else '–' }}{{ m.user.full_name }}{{ m.note or '' }}
{% else %}
Noch keine Bewegungen.
{% endif %}
{% endblock %}