From 172fdad24457fca4c5cec4a64e125213db4ff7db Mon Sep 17 00:00:00 2001 From: Sugesh393 Date: Wed, 15 Jan 2025 18:20:20 +0530 Subject: [PATCH] fix: set party_account_currency for pos_invoice returns (cherry picked from commit 2af6fca7fa8a5230c4949017210200da12613b41) --- erpnext/controllers/sales_and_purchase_return.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/controllers/sales_and_purchase_return.py b/erpnext/controllers/sales_and_purchase_return.py index 18368017429..2079338b09a 100644 --- a/erpnext/controllers/sales_and_purchase_return.py +++ b/erpnext/controllers/sales_and_purchase_return.py @@ -370,6 +370,8 @@ def make_return_doc(doctype: str, source_name: str, target_doc=None, return_agai if doc.get("is_return"): if doc.doctype == "Sales Invoice" or doc.doctype == "POS Invoice": doc.consolidated_invoice = "" + # no copy enabled for party_account_currency + doc.party_account_currency = source.party_account_currency doc.set("payments", []) doc.update_billed_amount_in_delivery_note = True for data in source.payments: