diff --git a/InvenTree/order/templates/order/purchase_order_detail.html b/InvenTree/order/templates/order/purchase_order_detail.html index e4647ce756..52355f1266 100644 --- a/InvenTree/order/templates/order/purchase_order_detail.html +++ b/InvenTree/order/templates/order/purchase_order_detail.html @@ -294,7 +294,7 @@ $("#po-table").inventreeTable({ { field: 'part', sortable: true, - sortName: 'part__part__name', + sortName: 'part_name', title: '{% trans "Part" %}', switchable: false, formatter: function(value, row, index, field) { @@ -314,7 +314,7 @@ $("#po-table").inventreeTable({ }, { sortable: true, - sortName: 'part__SKU', + sortName: 'SKU', field: 'supplier_part_detail.SKU', title: '{% trans "SKU" %}', formatter: function(value, row, index, field) { @@ -327,7 +327,7 @@ $("#po-table").inventreeTable({ }, { sortable: true, - sortName: 'part__MPN', + sortName: 'MPN', field: 'supplier_part_detail.manufacturer_part_detail.MPN', title: '{% trans "MPN" %}', formatter: function(value, row, index, field) { @@ -358,6 +358,7 @@ $("#po-table").inventreeTable({ { sortable: true, field: 'purchase_price', + sortName: 'price', title: '{% trans "Unit Price" %}', formatter: function(value, row) { return row.purchase_price_string || row.purchase_price;