Additional corrections for cases where get_exchange_rate was not called with the correct number of arguments.

This commit is contained in:
Chude Osiegbu
2016-09-19 01:34:49 +01:00
parent 7e74fb4357
commit 1f64f9897c
2 changed files with 4 additions and 2 deletions

View File

@@ -142,7 +142,8 @@ class AccountsController(TransactionBase):
elif self.currency == self.company_currency:
self.conversion_rate = 1.0
elif not self.conversion_rate:
self.conversion_rate = get_exchange_rate(self.currency,
# cksgb 19/09/2016: added transaction date to arguments for get_exchange_rate
self.conversion_rate = get_exchange_rate(self.transaction_date, self.currency,
self.company_currency)
def set_missing_item_details(self):