mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-29 09:01:14 +02:00
fix: set party_account_currency for pos_invoice returns
(cherry picked from commit 2af6fca7fa)
This commit is contained in:
@@ -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.get("is_return"):
|
||||||
if doc.doctype == "Sales Invoice" or doc.doctype == "POS Invoice":
|
if doc.doctype == "Sales Invoice" or doc.doctype == "POS Invoice":
|
||||||
doc.consolidated_invoice = ""
|
doc.consolidated_invoice = ""
|
||||||
|
# no copy enabled for party_account_currency
|
||||||
|
doc.party_account_currency = source.party_account_currency
|
||||||
doc.set("payments", [])
|
doc.set("payments", [])
|
||||||
doc.update_billed_amount_in_delivery_note = True
|
doc.update_billed_amount_in_delivery_note = True
|
||||||
for data in source.payments:
|
for data in source.payments:
|
||||||
|
|||||||
Reference in New Issue
Block a user