mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-12 14:11:46 +00:00
fix(get_exchange_rate): using get_single_value to fetch disabled value from currency_exchange_settings
This commit is contained in:
@@ -100,7 +100,7 @@ def get_exchange_rate(
|
||||
if entries:
|
||||
return flt(entries[0].exchange_rate)
|
||||
|
||||
if frappe.get_cached_value("Currency Exchange Settings", "Currency Exchange Settings", "disabled"):
|
||||
if frappe.get_single_value("Currency Exchange Settings", "disabled"):
|
||||
return 0.00
|
||||
|
||||
pegged_currencies = {}
|
||||
|
||||
Reference in New Issue
Block a user