Merge pull request #53649 from nishkagosalia/st-63180

This commit is contained in:
Nishka Gosalia
2026-03-23 14:27:13 +05:30
committed by GitHub
3 changed files with 38 additions and 2 deletions

View File

@@ -267,8 +267,8 @@ class StatusUpdater(Document):
self.global_amount_allowance = None
for args in self.status_updater:
if "target_ref_field" not in args:
# if target_ref_field is not specified, the programmer does not want to validate qty / amount
if "target_ref_field" not in args or args.get("validate_qty") is False:
# if target_ref_field is not specified or validate_qty is explicitly set to False, skip validation
continue
items_to_validate = []