diff --git a/InvenTree/part/templates/part/prices.html b/InvenTree/part/templates/part/prices.html index ac4565b8b1..21bc8d405a 100644 --- a/InvenTree/part/templates/part/prices.html +++ b/InvenTree/part/templates/part/prices.html @@ -136,9 +136,16 @@

{% trans "Supplier Cost" %}

-
- PLACEHOLDER FOR SUPPLIER COST TABLE -
+
+
+

{% trans "Suppliers" %}

+
+
+
+

{% trans "Manufacturers" %}

+
+
+
@@ -243,6 +250,33 @@ {% block js_ready %} {{ block.super }} + + loadSupplierPartTable( + "#supplier-table", + "{% url 'api-supplier-part-list' %}", + { + params: { + part: {{ part.id }}, + part_detail: false, + supplier_detail: true, + manufacturer_detail: true, + }, + } + ); + + loadManufacturerPartTable( + "#manufacturer-table", + "{% url 'api-manufacturer-part-list' %}", + { + params: { + part: {{ part.id }}, + part_detail: false, + manufacturer_detail: true, + }, + } + ); + + // history graphs {% default_currency as currency %} {% if price_history %} @@ -405,7 +439,7 @@ }) {% endif %} - + // Load the BOM table data loadBomTable($("#bom-table"), { editable: {{ editing_enabled }},