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" %}',
|
||||
switchable: true,
|
||||
sortable: true,
|
||||
sortName: 'stock', // This will sort by quantity -> serial_int -> serial
|
||||
formatter: function(value, row) {
|
||||
|
||||
var url = `/stock/item/${row.pk}/`;
|
||||
@ -926,7 +927,7 @@ function loadBuildOutputTable(build_info, options={}) {
|
||||
}
|
||||
|
||||
return renderLink(text, url);
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'allocated',
|
||||
|
Loading…
Reference in New Issue
Block a user