fix: Cleanup and fixes

This commit is contained in:
Deepesh Garg
2022-01-10 17:31:38 +05:30
parent c68b2c3763
commit e2dab6f421
7 changed files with 92 additions and 28 deletions

View File

@@ -100,7 +100,7 @@ def get_exchange_rate(from_currency, to_currency, transaction_date=None, args=No
if not value:
import requests
settings = frappe.get_single('Currency Exchange Settings')
settings = frappe.get_cached_doc('Currency Exchange Settings')
req_params = {
"transaction_date": transaction_date,
"from_currency": from_currency,