From ffda5a1b295f1394bf47f259f91441d091f96947 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 18 May 2019 23:13:18 +1000 Subject: [PATCH] Add warning if no pricing data available --- InvenTree/part/templates/part/part_pricing.html | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/InvenTree/part/templates/part/part_pricing.html b/InvenTree/part/templates/part/part_pricing.html index 6dd54fd495..bfff341049 100644 --- a/InvenTree/part/templates/part/part_pricing.html +++ b/InvenTree/part/templates/part/part_pricing.html @@ -15,13 +15,13 @@ Calculate pricing information for {{ part }}. Quantity {{ quantity }} -{% if buy_price %} + {% if buy_price %} Buy Cost {{ buy_price }} -{% endif %} -{% if bom_price %} + {% endif %} + {% if bom_price %} BOM Cost {{ bom_price }} @@ -33,9 +33,16 @@ Calculate pricing information for {{ part }}. {% endif %} -{% endif %} + {% endif %} +{% if buy_price or bom_price %} +{% else %} +
+ No pricing information is available for this part. +
+{% endif %} +
{% endblock %} \ No newline at end of file