{% extends 'base.html' %} {% from 'macros.html' import due with context %} {% block title %}Bestellliste{% endblock %} {% block content %}

Bestellliste

Stand {{ today|d }}
CSV
{% if by_supplier %} {% for sup, items in by_supplier.items() %}

{{ sup }}

{% for a in items %} {% endfor %}
ArtikelArt.-Nr.BestandMin.Bestellen
{{ a.name }}{{ a.article_no or '–' }} {{ a.stock|num }} {{ a.unit }}{{ a.min_stock|num }} {{ a.order_qty|num if a.order_qty else '?' }} {{ a.unit }}
{% if a.ordered_on %}{% else %}{% endif %}
{% endfor %} {% else %}
Kein Artikel unter Mindestbestand.
{% endif %} {% if lots %}

Verfall in den nächsten 30 Tagen

{% for l in lots %}{% endfor %}
ArtikelChargeMengeVerwendbar bis
{{ l.article.name }}{{ l.lot_no or '–' }}{{ l.quantity|num }} {{ l.article.unit }}{{ due(l.expiry, 30) }}
{% endif %} {% endblock %}