mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 05:09:11 +00:00
fix: Test case fixes in quotation for dynamic column
This commit is contained in:
@@ -218,8 +218,8 @@ def make_quotation(source_name, target_doc=None):
|
||||
quotation = frappe.get_doc(target)
|
||||
|
||||
company_currency = frappe.get_cached_value('Company', quotation.company, "default_currency")
|
||||
party_account_currency = get_party_account_currency("Customer", quotation.customer,
|
||||
quotation.company) if quotation.customer else company_currency
|
||||
party_account_currency = get_party_account_currency("Customer", quotation.customer_lead,
|
||||
quotation.company) if quotation.customer_lead else company_currency
|
||||
|
||||
quotation.currency = party_account_currency or company_currency
|
||||
|
||||
|
||||
Reference in New Issue
Block a user