2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 11:10:54 +00:00

Sales Order Allocation Improvements (#4556)

* Do not remove sales order allocations when returning an item against a return order

* Also do not clear allocations when returning manually

* stock item display tweaks

* Add extra column to sales order allocation table

* Improve methods for introspecting sales order allocations for stockitems

* Only display "active" sales order allocations on a stock item detail page

- All allocations are still visible in the allocation table

* Can't have available quantity if you're not available

tap's side of nose
This commit is contained in:
Oliver
2023-04-02 21:43:05 +10:00
committed by GitHub
parent 847d49a42d
commit 4d8cfd77ff
5 changed files with 56 additions and 18 deletions

View File

@ -1766,9 +1766,6 @@ 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,