Skip to content

Commit

Permalink
fix: error when saving POS merge log (#43989)
Browse files Browse the repository at this point in the history
(cherry picked from commit c62596b)
  • Loading branch information
sagarvora authored and mergify[bot] committed Nov 6, 2024
1 parent de0c6f2 commit c3e61ae
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c3e61ae

Please sign in to comment.