fix: cancel pos closing entry failure for return pos invoices (backport #47248) (#47249)

fix: cancel pos closing entry failure for return pos invoices (#47248)

(cherry picked from commit c8ee5d9a4e)

Co-authored-by: Diptanil Saha <diptanil@frappe.io>
This commit is contained in:
mergify[bot]
2025-04-24 23:23:08 +05:30
committed by GitHub
parent 0caba9f70d
commit 10d843e490

View File

@@ -336,7 +336,7 @@ class POSInvoiceMergeLog(Document):
for doc in invoice_docs:
doc.load_from_db()
inv = sales_invoice
if doc.is_return:
if doc.is_return and credit_notes:
for key, value in credit_notes.items():
if doc.name in value:
inv = key