mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-09 08:11:19 +00:00
chore: Adding new argument in status updater to skip qty validation
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user