chore: Adding new argument in status updater to skip qty validation

This commit is contained in:
nishkagosalia
2026-03-19 18:28:21 +05:30
parent 7a61d6fcd5
commit dcd0509089
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 = []