mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix incorrect value for "available stock"
This commit is contained in:
parent
4593b0f412
commit
0ab2ff306c
@ -1345,7 +1345,8 @@ class Part(MPTTModel):
|
|||||||
|
|
||||||
queryset = OrderModels.SalesOrderAllocation.objects.filter(item__part__id=self.id)
|
queryset = OrderModels.SalesOrderAllocation.objects.filter(item__part__id=self.id)
|
||||||
|
|
||||||
pending = kwargs.get('pending', None)
|
# Default behaviour is to only return *pending* allocations
|
||||||
|
pending = kwargs.get('pending', True)
|
||||||
|
|
||||||
if pending is True:
|
if pending is True:
|
||||||
# Look only for 'open' orders which have not shipped
|
# Look only for 'open' orders which have not shipped
|
||||||
|
Loading…
Reference in New Issue
Block a user