Skip to content

Commit

Permalink
Merge pull request #43994 from frappe/mergify/bp/version-14-hotfix/pr…
Browse files Browse the repository at this point in the history
…-43993

fix: ensure list has items (backport #43993)
  • Loading branch information
sagarvora authored Nov 6, 2024
2 parents 876af6d + 5c8af85 commit 478b49c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,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 478b49c

Please sign in to comment.