From ced7768030552162548a29ff4a2851c62dd69e58 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 6 Jun 2021 14:20:30 +0200 Subject: [PATCH 1/3] calculate button added --- InvenTree/part/templates/part/order_prices.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/InvenTree/part/templates/part/order_prices.html b/InvenTree/part/templates/part/order_prices.html index e165ee9c74..11c98265a4 100644 --- a/InvenTree/part/templates/part/order_prices.html +++ b/InvenTree/part/templates/part/order_prices.html @@ -15,7 +15,16 @@ {% block details %} {% default_currency as currency %} -{% crispy form %} +
+ {% csrf_token %} +
+
{{ form|crispy }}
+
+ +
+
+
+

{% trans "Pricing ranges" %}

From 36ff21f11ef8d1b45baa44c04b0b1d087b8fcb68 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 6 Jun 2021 14:21:08 +0200 Subject: [PATCH 2/3] hide supply part price on start --- InvenTree/part/templates/part/order_prices.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/InvenTree/part/templates/part/order_prices.html b/InvenTree/part/templates/part/order_prices.html index 11c98265a4..7466e3b7d8 100644 --- a/InvenTree/part/templates/part/order_prices.html +++ b/InvenTree/part/templates/part/order_prices.html @@ -166,7 +166,8 @@ the part single price shown is the current price for that supplier part"> Date: Sun, 6 Jun 2021 14:33:26 +0200 Subject: [PATCH 3/3] clearer information text? as in #1577 --- InvenTree/part/templates/part/order_prices.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/part/templates/part/order_prices.html b/InvenTree/part/templates/part/order_prices.html index 7466e3b7d8..f5af15afef 100644 --- a/InvenTree/part/templates/part/order_prices.html +++ b/InvenTree/part/templates/part/order_prices.html @@ -119,8 +119,8 @@ {% if price_history %}
-

{% trans 'Stock Pricing' %}

+

{% trans 'Stock Pricing' %}

{% if price_history|length > 1 %}