From b39283a18f2bce3e63345b612db55a94a883663d Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 2 May 2020 20:29:20 +1000 Subject: [PATCH] Separate allocation counters --- InvenTree/part/templates/part/part_base.html | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html index 4da8ec7ffe..0bb3687fc8 100644 --- a/InvenTree/part/templates/part/part_base.html +++ b/InvenTree/part/templates/part/part_base.html @@ -108,11 +108,18 @@ {% include "part/stock_count.html" %} {% if not part.is_template %} - {% if part.allocation_count > 0 %} + {% if part.build_order_allocation_count > 0 %} - {% trans "Allocated" %} - {% decimal part.allocation_count %} + {% trans "Allocated to Build Orders" %} + {% decimal part.build_order_allocation_count %} + + {% endif %} + {% if part.sales_order_allocation_count > 0 %} + + + {% trans "Allocated to Sales Orders" %} + {% decimal part.sales_order_allocation_count %} {% endif %} {% if part.on_order > 0 %}