diff --git a/InvenTree/part/templates/part/part_pricing.html b/InvenTree/part/templates/part/part_pricing.html index f61df368d4..b6f45fa8e9 100644 --- a/InvenTree/part/templates/part/part_pricing.html +++ b/InvenTree/part/templates/part/part_pricing.html @@ -60,6 +60,7 @@ Max: {% include "price.html" with price=max_total_bom_price %} {% endif %} + {% endif %} {% if min_total_bom_purchase_price %} {% trans 'Unit Purchase Price' %} @@ -82,6 +83,8 @@ {% endif %} + + {% if min_total_bom_price or min_total_bom_purchase_price %} {% else %} @@ -122,7 +125,7 @@ {% endif %} -{% if min_unit_buy_price or min_unit_bom_price %} +{% if min_unit_buy_price or min_unit_bom_price or min_unit_bom_purchase_price %} {% else %}
{% trans 'No pricing information is available for this part.' %} diff --git a/InvenTree/part/templates/part/prices.html b/InvenTree/part/templates/part/prices.html index 13761f4ca1..7ea93d6fdd 100644 --- a/InvenTree/part/templates/part/prices.html +++ b/InvenTree/part/templates/part/prices.html @@ -64,9 +64,9 @@ Max: {% include "price.html" with price=max_total_bom_price %} {% endif %} + {% endif %} - - {% if min_total_bom_purchase_price %} + {% if min_total_bom_purchase_price %} {% trans 'Unit Purchase Price' %} @@ -81,15 +81,17 @@ Max: {% include "price.html" with price=max_total_bom_purchase_price %} {% endif %} - {% endif %} + {% endif %} - {% if not part.has_complete_bom_pricing %} - - - {% trans 'Note: BOM pricing is incomplete for this part' %} - - - {% endif %} + {% if not part.has_complete_bom_pricing %} + + + {% trans 'Note: BOM pricing is incomplete for this part' %} + + + {% endif %} + + {% if min_total_bom_price or min_total_bom_purchase_price %} {% else %} @@ -131,7 +133,7 @@ {% endif %} - {% if min_unit_buy_price or min_unit_bom_price %} + {% if min_unit_buy_price or min_unit_bom_price or min_unit_bom_purchase_price %} {% else %}
{% trans 'No pricing information is available for this part.' %}