Merge pull request #45284 from aerele/pos-return-currency

fix: set party_account_currency for pos_invoice returns
This commit is contained in:
ruthra kumar
2025-01-27 14:27:41 +05:30
committed by GitHub
2 changed files with 26 additions and 0 deletions

View File

@@ -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: