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:
Nabin Hait
2026-06-05 11:44:22 +05:30
parent d1fd91a542
commit 1a4b61a822

View File

@@ -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":