mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 06:59:20 +00:00
refactor: fix type error
This commit is contained in:
@@ -113,6 +113,8 @@ def get_exchange_rate(from_currency, to_currency, transaction_date=None, args=No
|
|||||||
value = value[format_ces_api(str(res_key.key), req_params)]
|
value = value[format_ces_api(str(res_key.key), req_params)]
|
||||||
cache.setex(name=key, time=21600, value=flt(value))
|
cache.setex(name=key, time=21600, value=flt(value))
|
||||||
|
|
||||||
|
# Support AED conversion through pegged USD
|
||||||
|
value = flt(value)
|
||||||
if to_currency == "AED":
|
if to_currency == "AED":
|
||||||
value *= 3.6725
|
value *= 3.6725
|
||||||
if from_currency == "AED":
|
if from_currency == "AED":
|
||||||
|
|||||||
Reference in New Issue
Block a user