diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html index fe18c68a38..d14cfbdfd5 100644 --- a/InvenTree/part/templates/part/part_base.html +++ b/InvenTree/part/templates/part/part_base.html @@ -204,44 +204,60 @@ {% decimal on_order %} {% endif %} + {% if part.component %} {% if required_build_order_quantity > 0 %} {% trans "Required for Build Orders" %} - {% decimal required_build_order_quantity %} + {% decimal required_build_order_quantity %} + + + + {% trans "Allocated to Build Orders" %} + + {% decimal allocated_build_order_quantity %} + {% if allocated_build_order_quantity < required_build_order_quantity %} + + {% else %} + + {% endif %} + {% endif %} + {% endif %} + {% if part.salable %} {% if required_sales_order_quantity > 0 %} {% trans "Required for Sales Orders" %} - {% decimal required_sales_order_quantity %} - - {% endif %} - {% if allocated > 0 %} - - - {% trans "Allocated to Orders" %} - {% decimal allocated %} - - {% endif %} - - {% if not part.is_template %} - {% if part.assembly %} - -
- -
{% trans "Build Status" %}
+ + {% decimal required_sales_order_quantity %} - + + {% trans "Allocated to Sales Orders" %} + + {% decimal allocated_sales_order_quantity %} + {% if allocated_sales_order_quantity < required_sales_order_quantity %} + + {% else %} + + {% endif %} + + + {% endif %} + {% endif %} + {% if not part.is_template %} + {% if part.assembly %} + + {% trans "Can Build" %} {% decimal part.can_build %} {% if quantity_being_built > 0 %} - + {% trans "Building" %} {% decimal quantity_being_built %}