mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 12:05:53 +00:00
Don't show zero-quantity items when ordering against a build
This commit is contained in:
@ -255,6 +255,9 @@ class OrderParts(AjaxView):
|
||||
parts = build.part.required_parts()
|
||||
|
||||
for part in parts:
|
||||
# If ordering from a Build page, ignore parts that we have enough of
|
||||
if part.quantity_to_order <= 0:
|
||||
continue
|
||||
part_ids.add(part.id)
|
||||
except Build.DoesNotExist:
|
||||
pass
|
||||
|
Reference in New Issue
Block a user