From 8446be6518b513db39bf544e74564ddf8ba78fd2 Mon Sep 17 00:00:00 2001 From: ervishnucs Date: Sun, 28 Jun 2026 20:13:53 +0530 Subject: [PATCH] fix: set currency and price list before computing quotation totals --- erpnext/selling/doctype/customer/mapper.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/erpnext/selling/doctype/customer/mapper.py b/erpnext/selling/doctype/customer/mapper.py index 1cff9fbac79..6d1ed14662d 100644 --- a/erpnext/selling/doctype/customer/mapper.py +++ b/erpnext/selling/doctype/customer/mapper.py @@ -23,9 +23,6 @@ def make_quotation(source_name: str, target_doc: str | Document | None = None): ) target_doc.quotation_to = "Customer" - target_doc.run_method("set_missing_values") - target_doc.run_method("set_other_charges") - target_doc.run_method("calculate_taxes_and_totals") price_list, currency = frappe.db.get_value( "Customer", {"name": source_name}, ["default_price_list", "default_currency"] @@ -39,7 +36,9 @@ def make_quotation(source_name: str, target_doc: str | Document | None = None): target_doc.conversion_rate = get_exchange_rate( target_doc.currency, company_currency, target_doc.transaction_date, "for_selling" ) - target_doc.run_method("calculate_taxes_and_totals") + target_doc.run_method("set_missing_values") + target_doc.run_method("set_other_charges") + target_doc.run_method("calculate_taxes_and_totals") return target_doc