mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 08:35:00 +00:00
fix: ensure list has items
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