{% macro consumption_graph_svg(values) -%} {% set stroke_width = 8 %} {% set width = 300 %} {% set height = 100 %} {% set padding = 4 %} {% set dx = (width - 2 * padding) / ((values | length) + 1) %} {% set dy = (height - 2 * padding) / ((values + [1]) | max) %} {% endmacro -%} {% extends "base.html" %} {% block content %} {% for item in items %} {% endfor %}
Stat ID Graph Barcode Name Preis (Netto) Kaufdatum Gruppe Eingekauft Korr. Inventar #AS Raum
{% if item.units_left == 0 %}🅾️{% endif %} {% if item.other_lines_count != 0 %}🔄{% endif %} {{ item.item_id }} {{ consumption_graph_svg(item.last_n_days_sales) }} {{ item.item_barcode }} {{ item.name }} {{ format_currency(item.unit_price) }} {{ format_date(item.bought) }} {{ item.group_name }} ({{ item.item_group }}) {{ item.sales_units }} {% if item.correction_delta > 0 %}+{% endif %}{{ item.correction_delta }} {{ item.units_left }} {{ item.active_mappings }} {{ item.location_name }}
{% endblock %}