Merge pull request #43995 from frappe/mergify/bp/version-15-hotfix/pr-43993

fix: ensure list has items (backport #43993)
This commit is contained in:
Sagar Vora
2024-11-06 14:08:33 +05:30
committed by GitHub

View File

@@ -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