mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-10 10:57:52 +00:00
Allow sorting of part table by unallocated_stock
This commit is contained in:
1 parent
58003bc2cb
commit
0908aa8c8c
2 files changed
+2
-1
No files matched your search
@@ -1348,6 +1348,7 @@ class PartList(generics.ListCreateAPIView):
|
||||
'creation_date',
|
||||
'IPN',
|
||||
'in_stock',
|
||||
'unallocated_stock',
|
||||
'category',
|
||||
]
|
||||
|
||||
|
||||
@@ -1384,7 +1384,7 @@ function loadPartTable(table, url, options={}) {
|
||||
link = '?display=build-orders';
|
||||
} else {
|
||||
// There is no available stock
|
||||
value = `0<span class='badge badge-right rounded-pill bg-warning'>{% trans "Not available" %}</span>`;
|
||||
value = `0<span class='badge badge-right rounded-pill bg-warning'>{% trans "No stock available" %}</span>`;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user