Skip to content

Commit

Permalink
fix: linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
GursheenK committed Feb 27, 2024
1 parent 882cf98 commit e289aef
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -702,10 +702,7 @@ def has_negative_stock_allowed(self):
if allow_negative_stock:
return True

if any(
(d.batch_no and flt(d.qty) == flt(d.current_qty))
for d in self.items
):
if any((d.batch_no and flt(d.qty) == flt(d.current_qty)) for d in self.items):
allow_negative_stock = True

return allow_negative_stock
Expand Down

0 comments on commit e289aef

Please sign in to comment.