mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-29 06:38:24 +00:00
fix: exclude fully-delivered reservations from the conflict message
This commit is contained in:
@@ -1366,8 +1366,10 @@ class StockController(AccountsController):
|
||||
continue
|
||||
|
||||
key = (row.batch_no, row.warehouse)
|
||||
outstanding_qty[key] += flt(row.qty) - flt(row.delivered_qty)
|
||||
reservations[key].append(row)
|
||||
outstanding = flt(row.qty) - flt(row.delivered_qty)
|
||||
outstanding_qty[key] += outstanding
|
||||
if outstanding > 0:
|
||||
reservations[key].append(row)
|
||||
|
||||
for (batch_no, warehouse), reserved_qty in outstanding_qty.items():
|
||||
if reserved_qty <= 0:
|
||||
|
||||
Reference in New Issue
Block a user