From 2153399c391b7289012a0bd560ebd00de15ca7ab Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 15 Jun 2017 12:30:58 +0530 Subject: [PATCH] Create journal_entry.py --- erpnext/accounts/doctype/journal_entry/journal_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.py b/erpnext/accounts/doctype/journal_entry/journal_entry.py index d5a1d627528..a3de8da9a29 100644 --- a/erpnext/accounts/doctype/journal_entry/journal_entry.py +++ b/erpnext/accounts/doctype/journal_entry/journal_entry.py @@ -873,7 +873,7 @@ def get_exchange_rate(posting_date, account=None, account_currency=None, company # The date used to retreive the exchange rate here is the date passed # in as an argument to this function. - elif account_currency and posting_date: + elif (not exchange_rate or exchange_rate==1) and account_currency and posting_date: exchange_rate = get_exchange_rate(account_currency, company_currency, posting_date) else: exchange_rate = 1