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

@ -113,6 +113,14 @@ function loadPurchaseOrderTable(table, options) {
title: 'ID', title: 'ID',
visible: false, 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, sortable: true,
field: 'supplier', field: 'supplier',
@ -121,14 +129,6 @@ function loadPurchaseOrderTable(table, options) {
return imageHoverIcon(row.supplier__image) + renderLink(row.supplier__name, '/company/' + value + '/purchase-orders/'); 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, sortable: true,
field: 'creation_date', field: 'creation_date',