mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 13:39:18 +00:00
Merge pull request #51375 from aerele/fix/stock-reservation-entry
fix(stock): prevent excess stock reservation
This commit is contained in:
@@ -709,6 +709,7 @@ def get_available_qty_to_reserve(
|
|||||||
& (sre.warehouse == warehouse)
|
& (sre.warehouse == warehouse)
|
||||||
& (sre.delivered_qty < sre.reserved_qty)
|
& (sre.delivered_qty < sre.reserved_qty)
|
||||||
)
|
)
|
||||||
|
.for_update()
|
||||||
)
|
)
|
||||||
|
|
||||||
if ignore_sre:
|
if ignore_sre:
|
||||||
|
|||||||
Reference in New Issue
Block a user