mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Filter stock list by "customer"
This commit is contained in:
parent
96b79397c2
commit
408c6a4040
@ -471,6 +471,12 @@ class StockList(generics.ListCreateAPIView):
|
|||||||
if sales_order:
|
if sales_order:
|
||||||
queryset = queryset.filter(sales_order=sales_order)
|
queryset = queryset.filter(sales_order=sales_order)
|
||||||
|
|
||||||
|
# Filter by customer
|
||||||
|
customer = params.get('customer', None)
|
||||||
|
|
||||||
|
if customer:
|
||||||
|
queryset = queryset.filter(customer=customer)
|
||||||
|
|
||||||
# Filter by "serialized" status?
|
# Filter by "serialized" status?
|
||||||
serialized = params.get('serialized', None)
|
serialized = params.get('serialized', None)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user