2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 04:26:44 +00:00

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', title: 'Description',
sortable: true, 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', field: 'quantity',
title: 'Stock', title: 'Stock',
@ -482,6 +469,19 @@ function loadStockTable(table, options) {
return text; 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', field: 'notes',
title: 'Notes', title: 'Notes',