Skip to content

Commit

Permalink
fix: ensure list has items
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarvora committed Nov 6, 2024
1 parent c62596b commit e13e688
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def split_invoices(invoices):
continue

return_against_is_added = any(
d for d in _invoices if d[0].pos_invoice == pos_invoice.return_against
d for d in _invoices if d and d[0].pos_invoice == pos_invoice.return_against
)
if return_against_is_added:
break
Expand Down

0 comments on commit e13e688

Please sign in to comment.