diff --git a/InvenTree/InvenTree/static/css/inventree.css b/InvenTree/InvenTree/static/css/inventree.css
index 1c8d529a92..a71e29ab5d 100644
--- a/InvenTree/InvenTree/static/css/inventree.css
+++ b/InvenTree/InvenTree/static/css/inventree.css
@@ -781,8 +781,8 @@ input[type="submit"] {
}
.sidenav .list-group-item.active {
- background-color: #b3a997;
- border-color: #ccc;
+ background-color: #c6d4ea;
+ border: 2px #aab solid;
}
/* The side navigation menu */
diff --git a/InvenTree/order/templates/order/purchase_order_detail.html b/InvenTree/order/templates/order/purchase_order_detail.html
index 97a4ffb78e..54d0ca76be 100644
--- a/InvenTree/order/templates/order/purchase_order_detail.html
+++ b/InvenTree/order/templates/order/purchase_order_detail.html
@@ -187,7 +187,11 @@ $('#new-po-line').click(function() {
quantity: {},
reference: {},
purchase_price: {},
- purchase_price_currency: {},
+ purchase_price_currency: {
+ {% if order.supplier.currency %}
+ value: '{{ order.supplier.currency }}',
+ {% endif %}
+ },
destination: {},
notes: {},
},
@@ -324,9 +328,9 @@ $("#po-table").inventreeTable({
title: '{% trans "MPN" %}',
formatter: function(value, row, index, field) {
if (row.supplier_part_detail && row.supplier_part_detail.manufacturer_part) {
- return renderLink(value, `/manufacturer-part/${row.supplier_part_detail.manufacturer_part.pk}/`);
+ return renderLink(value, `/manufacturer-part/${row.supplier_part_detail.manufacturer_part}/`);
} else {
- return "";
+ return "-";
}
},
},
diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html
index b92ce4fbeb..0ba539baea 100644
--- a/InvenTree/part/templates/part/detail.html
+++ b/InvenTree/part/templates/part/detail.html
@@ -223,30 +223,6 @@
-
-
-
{% trans "Part Suppliers" %}
-
-
-
-
{% trans "Bill of Materials" %}
@@ -302,7 +278,29 @@
-
+
+
+
{% trans "Part Suppliers" %}
+
+
+
{% trans "Part Manufacturers" %}
@@ -321,7 +319,7 @@
-
+
@@ -828,7 +826,7 @@
$("#supplier-part-delete").click(function() {
- var selections = $("#supplier-table").bootstrapTable("getSelections");
+ var selections = $("#supplier-part-table").bootstrapTable("getSelections");
var parts = [];
@@ -845,7 +843,7 @@
});
loadSupplierPartTable(
- "#supplier-table",
+ "#supplier-part-table",
"{% url 'api-supplier-part-list' %}",
{
params: {
@@ -857,10 +855,10 @@
}
);
- linkButtonsToSelection($("#supplier-table"), ['#supplier-part-options']);
+ linkButtonsToSelection($("#supplier-part-table"), ['#supplier-part-options']);
loadManufacturerPartTable(
- '#manufacturer-table',
+ '#manufacturer-part-table',
"{% url 'api-manufacturer-part-list' %}",
{
params: {
@@ -871,15 +869,15 @@
}
);
- linkButtonsToSelection($("#manufacturer-table"), ['#manufacturer-part-options']);
+ linkButtonsToSelection($("#manufacturer-part-table"), ['#manufacturer-part-options']);
$("#manufacturer-part-delete").click(function() {
- var selections = $("#manufacturer-table").bootstrapTable("getSelections");
+ var selections = $("#manufacturer-part-table").bootstrapTable("getSelections");
deleteManufacturerParts(selections, {
onSuccess: function() {
- $("#manufacturer-table").bootstrapTable("refresh");
+ $("#manufacturer-part-table").bootstrapTable("refresh");
}
});
});
@@ -900,7 +898,7 @@
method: 'POST',
title: '{% trans "Add Manufacturer Part" %}',
onSuccess: function() {
- $("#manufacturer-table").bootstrapTable("refresh");
+ $("#manufacturer-part-table").bootstrapTable("refresh");
}
});
});
diff --git a/InvenTree/part/templates/part/navbar.html b/InvenTree/part/templates/part/navbar.html
index 8ea1204bc8..a2dc67c079 100644
--- a/InvenTree/part/templates/part/navbar.html
+++ b/InvenTree/part/templates/part/navbar.html
@@ -63,17 +63,11 @@
{% if part.purchaseable and roles.purchase_order.view %}
-
+
{% trans "Suppliers" %}
-
-
-
- {% trans "Manufacturers" %}
-
-
diff --git a/InvenTree/templates/js/company.js b/InvenTree/templates/js/company.js
index 18d7408b23..7daa99e1c6 100644
--- a/InvenTree/templates/js/company.js
+++ b/InvenTree/templates/js/company.js
@@ -539,7 +539,7 @@ function loadSupplierPartTable(table, url, options) {
title: '{% trans "MPN" %}',
formatter: function(value, row, index, field) {
if (value && row.manufacturer_part) {
- return renderLink(value, `/manufacturer-part/${row.manufacturer_part.pk}/`);
+ return renderLink(value, `/manufacturer-part/${row.manufacturer_part}/`);
} else {
return "-";
}
diff --git a/InvenTree/templates/registration/logged_out.html b/InvenTree/templates/registration/logged_out.html
index 6af620616b..703e077f35 100644
--- a/InvenTree/templates/registration/logged_out.html
+++ b/InvenTree/templates/registration/logged_out.html
@@ -14,7 +14,7 @@
-
+