mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +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',
|
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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user