mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-15 07:28:39 +00:00
fix(stock): skip disabled Putaway Rules in capacity validation
validate_putaway_capacity selected the 'disable' field but checked rule.get('disabled')
(always None), so disabled rules still enforced capacity and could wrongly raise
'Over Receipt'. Use the correct 'disable' key. Pre-existing bug surfaced during the
stock_controller refactor review.
This commit is contained in:
@@ -363,7 +363,7 @@ def validate_putaway_capacity(doc):
|
||||
as_dict=True,
|
||||
)
|
||||
if rule:
|
||||
if rule.get("disabled"):
|
||||
if rule.get("disable"):
|
||||
continue # dont validate for disabled rule
|
||||
|
||||
if doc.doctype == "Stock Reconciliation":
|
||||
|
||||
Reference in New Issue
Block a user