mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
optimize(various)
This commit is contained in:
@@ -217,7 +217,7 @@ def make_quotation(source_name, target_doc=None):
|
||||
from erpnext.controllers.accounts_controller import get_default_taxes_and_charges
|
||||
quotation = frappe.get_doc(target)
|
||||
|
||||
company_currency = frappe.db.get_value("Company", quotation.company, "default_currency")
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user