From bbada3e87339e582f246c2e76b417837b72389a7 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 19 Jul 2021 14:34:58 +1000 Subject: [PATCH 1/2] Fix duplicate table naming --- InvenTree/part/templates/part/prices.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/part/templates/part/prices.html b/InvenTree/part/templates/part/prices.html index 65d36e005a..7581d659e1 100644 --- a/InvenTree/part/templates/part/prices.html +++ b/InvenTree/part/templates/part/prices.html @@ -217,7 +217,7 @@
-
+
{% if part.bom_count > 0 %} From 40c203c123fe3630dd32edc75cddb4d83825dc75 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 19 Jul 2021 14:40:02 +1000 Subject: [PATCH 2/2] Ensure BOM pricing table is loaded --- InvenTree/part/templates/part/detail.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index 0666108e0b..b057b98209 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -370,6 +370,16 @@ sub_part_detail: true, }); + // Load the BOM table data in the pricing view + loadBomTable($("#bom-pricing-table"), { + editable: {{ editing_enabled }}, + bom_url: "{% url 'api-bom-list' %}", + part_url: "{% url 'api-part-list' %}", + parent_id: {{ part.id }} , + sub_part_detail: true, + }); + + linkButtonsToSelection($("#bom-table"), [ "#bom-item-delete",