mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Server-side sorting of "build output" column
This commit is contained in:
parent
ba3bcdba89
commit
63145c90b0
@ -913,6 +913,7 @@ function loadBuildOutputTable(build_info, options={}) {
|
|||||||
title: '{% trans "Build Output" %}',
|
title: '{% trans "Build Output" %}',
|
||||||
switchable: true,
|
switchable: true,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
|
sortName: 'stock', // This will sort by quantity -> serial_int -> serial
|
||||||
formatter: function(value, row) {
|
formatter: function(value, row) {
|
||||||
|
|
||||||
var url = `/stock/item/${row.pk}/`;
|
var url = `/stock/item/${row.pk}/`;
|
||||||
@ -926,7 +927,7 @@ function loadBuildOutputTable(build_info, options={}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return renderLink(text, url);
|
return renderLink(text, url);
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'allocated',
|
field: 'allocated',
|
||||||
|
Loading…
Reference in New Issue
Block a user