From 46dea22cd41c219ac2cbfe37048489be6d051c7a Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 29 Apr 2018 22:07:58 +1000 Subject: [PATCH] Simplified part stock display --- InvenTree/part/templates/part/part_base.html | 22 ++------------------ 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html index f4e3df8343..85f15967ca 100644 --- a/InvenTree/part/templates/part/part_base.html +++ b/InvenTree/part/templates/part/part_base.html @@ -43,26 +43,12 @@ - + {% if part.buildable %} - + {% if part.quantity_being_built > 0 %} @@ -74,11 +60,7 @@ {% if part.allocation_count > 0 %} - {% if part.allocation_count > part.total_stock %} - - {% else %} - {% endif %} {% endif %}
In Stock - {% if part.stock == 0 %} - {{ part.total_stock }} - {% elif part.stock < part.minimum_stock %} - {{ part.total_stock }} - {% else %} - {{ part.total_stock }} - {% endif %} - {{ part.total_stock }}
Can Build - {% if part.can_build == 0 %} - 0 - {% else %} - {{ part.can_build }} - {% endif %} - {{ part.can_build }}
Allocated{{ part.allocation_count }}{{ part.allocation_count }}