fix: Test case fixes in quotation for dynamic column

This commit is contained in:
deepeshgarg007
2019-04-03 08:53:03 +05:30
parent e889a58724
commit 3987b4b714
5 changed files with 14 additions and 16 deletions

View File

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