Clear allocations when returning a stock item against a return order (#4538)
This commit is contained in:
parent
66b8fb6bc1
commit
8148067f59
|
|
@ -1745,6 +1745,9 @@ class ReturnOrder(TotalPriceMixin, Order):
|
|||
|
||||
stock_item = line.item
|
||||
|
||||
# Remove any allocations against the returned StockItem
|
||||
stock_item.clearAllocations()
|
||||
|
||||
deltas = {
|
||||
'status': StockStatus.QUARANTINED,
|
||||
'returnorder': self.pk,
|
||||
|
|
|
|||
Loading…
Reference in New Issue