fix: Always fetch exchange rate from ref document

This commit is contained in:
Nabin Hait 2019-05-01 15:32:30 +05:30
parent 0af45b41d7
commit 3191d072f0

View File

@ -161,7 +161,7 @@ class PaymentEntry(AccountsController):
d.reference_name, self.party_account_currency)
for field, value in iteritems(ref_details):
if not d.get(field) or force:
if field == 'exchange_rate' or not d.get(field) or force:
d.set(field, value)
def validate_payment_type(self):