better handling of updating units and quantities

This commit is contained in:
2026-01-03 15:44:42 +01:00
parent 15de0758b4
commit 9013d48883
3 changed files with 85 additions and 64 deletions
+1 -1
View File
@@ -49,7 +49,7 @@
{{ item.label }}
</div>
<div>
{% if item.quantity > 1 %}
{% if item.quantity > 1 or item.unit != 'x' %}
{{ item.quantity }}{{ item.unit }}
{% endif %}
<img src="/static/categories/{{ item.category }}.svg" style="height: 2em;" alt="...">