mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-28 02:28:43 +00:00
Use integer ordering for part quantity
This commit is contained in:
1 parent
15432fd6b7
commit
2fffd874a3
1 file changed
+1
-1
@@ -160,7 +160,7 @@ class OrderParts(AjaxView):
|
|||||||
|
|
||||||
ctx = {}
|
ctx = {}
|
||||||
|
|
||||||
ctx['parts'] = sorted(self.parts, key=lambda part: part.order_quantity, reverse=True)
|
ctx['parts'] = sorted(self.parts, key=lambda part: int(part.order_quantity), reverse=True)
|
||||||
|
|
||||||
return ctx
|
return ctx
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user