mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Reorder stock table columns
This commit is contained in:
parent
7ac52d4d9f
commit
f7d521ca97
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user