Skip to content

Commit

Permalink
chore: remove unwanted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 authored Jan 21, 2023
1 parent d67eb80 commit d4ba668
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions erpnext/controllers/status_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit d4ba668

Please sign in to comment.