mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 17:15:04 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user