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,
field: 'supplier',
title: 'Supplier',
field: 'reference',
title: 'Purchase Order',
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,
field: 'reference',
title: 'Reference',
field: 'supplier',
title: 'Supplier',
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/');
}
},
{