From 00310e0235af6c1460a5b5267dd25c54e55004e6 Mon Sep 17 00:00:00 2001 From: Gregoo Date: Fri, 17 Jan 2025 15:35:23 +0100 Subject: [PATCH] Fix part list not using total_quantity --- templates/part/table.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/part/table.html b/templates/part/table.html index 013d3c8..9a817be 100644 --- a/templates/part/table.html +++ b/templates/part/table.html @@ -17,7 +17,11 @@ {{ item.fields.color_name }} {% if not no_quantity %} - {% if quantity %}{{ item.fields.quantity * quantity }}{% else %}{{ item.fields.quantity }}{% endif %} + {% if all %} + {{ item.fields.total_quantity }} + {% else %} + {% if quantity %}{{ item.fields.quantity * quantity }}{% else %}{{ item.fields.quantity }}{% endif %} + {% endif %} {% endif %} {% if not no_missing %}