mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Server-side sorting of "build output" column
This commit is contained in:
		| @@ -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', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user