diff --git a/erpnext/controllers/status_updater.py b/erpnext/controllers/status_updater.py index 8e7740d5c8c1..d4972973d0b4 100644 --- a/erpnext/controllers/status_updater.py +++ b/erpnext/controllers/status_updater.py @@ -226,8 +226,7 @@ def validate_qty(self): continue # get unique transactions to update - children = self.get_all_children() - for d in children: + for d in self.get_all_children(): if hasattr(d, "qty") and d.qty < 0 and not self.get("is_return"): frappe.throw(_("For an item {0}, quantity must be positive number").format(d.item_code))