Rearrange purchase order table

This commit is contained in:
Oliver Walters 2020-04-06 20:56:07 +10:00
parent 44c10c45cd
commit 0840cebd57

View File

@ -115,18 +115,18 @@ function loadPurchaseOrderTable(table, options) {
}, },
{ {
sortable: true, sortable: true,
field: 'supplier', field: 'reference',
title: 'Supplier', title: 'Purchase Order',
formatter: function(value, row, index, field) { formatter: function(value, row, index, field) {
return imageHoverIcon(row.supplier__image) + renderLink(row.supplier__name, '/company/' + value + '/purchase-orders/'); return renderLink(value, "/order/purchase-order/" + row.pk + "/");
} }
}, },
{ {
sortable: true, sortable: true,
field: 'reference', field: 'supplier',
title: 'Reference', title: 'Supplier',
formatter: function(value, row, index, field) { formatter: function(value, row, index, field) {
return renderLink(value, "/order/purchase-order/" + row.pk + "/"); return imageHoverIcon(row.supplier__image) + renderLink(row.supplier__name, '/company/' + value + '/purchase-orders/');
} }
}, },
{ {