diff --git a/InvenTree/InvenTree/static/script/inventree/order.js b/InvenTree/InvenTree/static/script/inventree/order.js index d811cc5ea1..a54a464b88 100644 --- a/InvenTree/InvenTree/static/script/inventree/order.js +++ b/InvenTree/InvenTree/static/script/inventree/order.js @@ -113,6 +113,14 @@ function loadPurchaseOrderTable(table, options) { title: 'ID', visible: false, }, + { + sortable: true, + field: 'reference', + title: 'Purchase Order', + formatter: function(value, row, index, field) { + return renderLink(value, "/order/purchase-order/" + row.pk + "/"); + } + }, { sortable: true, field: 'supplier', @@ -121,14 +129,6 @@ function loadPurchaseOrderTable(table, options) { return imageHoverIcon(row.supplier__image) + renderLink(row.supplier__name, '/company/' + value + '/purchase-orders/'); } }, - { - sortable: true, - field: 'reference', - title: 'Reference', - formatter: function(value, row, index, field) { - return renderLink(value, "/order/purchase-order/" + row.pk + "/"); - } - }, { sortable: true, field: 'creation_date',