mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 09:43:49 +00:00
fix(stock): prevent excess stock reservation
(cherry picked from commit e1f9adf4e9)
This commit is contained in:
@@ -537,6 +537,7 @@ def get_available_qty_to_reserve(
|
||||
& (sre.reserved_qty >= sre.delivered_qty)
|
||||
& (sre.status.notin(["Delivered", "Cancelled"]))
|
||||
)
|
||||
.for_update()
|
||||
)
|
||||
|
||||
if ignore_sre:
|
||||
|
||||
Reference in New Issue
Block a user