Merge pull request #43990 from frappe/mergify/bp/version-14-hotfix/pr-43989

fix: error when saving POS merge log (backport #43989)
This commit is contained in:
Sagar Vora
2024-11-06 13:26:09 +05:30
committed by GitHub

View File

@@ -389,7 +389,9 @@ def split_invoices(invoices):
if not item.serial_no:
continue
return_against_is_added = any(d for d in _invoices if d.pos_invoice == pos_invoice.return_against)
return_against_is_added = any(
d for d in _invoices if d[0].pos_invoice == pos_invoice.return_against
)
if return_against_is_added:
break