Merge pull request #5967 from rohitwaghchaure/minor_fix

minor fix in payment entry
This commit is contained in:
Nabin Hait 2016-08-02 11:29:48 +05:30 committed by GitHub
commit 8869430a81

View File

@ -569,10 +569,9 @@ def get_company_defaults(company):
@frappe.whitelist()
def get_reference_details(reference_doctype, reference_name, party_account_currency):
total_amount = outstanding_amount = exchange_rate = None
ref_doc = frappe.get_doc(reference_doctype, reference_name)
if reference_doctype != "Journal Entry":
ref_doc = frappe.get_doc(reference_doctype, reference_name)
if party_account_currency == ref_doc.company_currency:
total_amount = ref_doc.base_grand_total
exchange_rate = 1