mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-19 23:05:12 +00:00
Merge pull request #51394 from frappe/mergify/bp/version-15-hotfix/pr-51375
fix(stock): prevent excess stock reservation (backport #51375)
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