fix: error when saving POS merge log (#43989)

(cherry picked from commit c62596b323)
This commit is contained in:
Sagar Vora
2024-11-06 13:21:19 +05:30
committed by Mergify
parent de0c6f2ca9
commit c3e61aebd2

View File

@@ -438,7 +438,9 @@ def split_invoices(invoices):
if not item.serial_no and not item.serial_and_batch_bundle:
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