Reorder stock table columns

This commit is contained in:
Oliver Walters 2019-05-28 19:13:46 +10:00
parent 7ac52d4d9f
commit f7d521ca97

View File

@ -450,19 +450,6 @@ function loadStockTable(table, options) {
title: 'Description',
sortable: true,
},
{
field: 'location_detail',
title: 'Location',
sortable: true,
formatter: function(value, row, index, field) {
if (value) {
return renderLink(value.pathstring, value.url);
}
else {
return '<i>No stock location set</i>';
}
}
},
{
field: 'quantity',
title: 'Stock',
@ -482,6 +469,19 @@ function loadStockTable(table, options) {
return text;
}
},
{
field: 'location_detail',
title: 'Location',
sortable: true,
formatter: function(value, row, index, field) {
if (value) {
return renderLink(value.pathstring, value.url);
}
else {
return '<i>No stock location set</i>';
}
}
},
{
field: 'notes',
title: 'Notes',