From b4c9edcd270a50658b1b6e989c5ab076bdba151f Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 24 May 2021 22:31:33 +0200 Subject: [PATCH] bom-price ranges as pie-chart --- .../part/templates/part/order_prices.html | 35 ++++++++++++++++--- InvenTree/part/views.py | 13 +++++++ InvenTree/templates/js/part.js | 16 ++++++++- 3 files changed, 59 insertions(+), 5 deletions(-) diff --git a/InvenTree/part/templates/part/order_prices.html b/InvenTree/part/templates/part/order_prices.html index 8efcf2994d..6c5b2173bf 100644 --- a/InvenTree/part/templates/part/order_prices.html +++ b/InvenTree/part/templates/part/order_prices.html @@ -97,7 +97,16 @@ {% trans 'No pricing information is available for this part.' %} {% endif %} - + +{% if part.bom_count > 0 %} +
+

{% trans 'BOM Pricing' %}

+
+ +
+
+{% endif %} + {% if price_history %}
@@ -122,7 +131,6 @@ the part single price shown is the current price for that supplier part">