diff --git a/frappe/public/js/frappe/utils/number_format.js b/frappe/public/js/frappe/utils/number_format.js index 463cf582f6..a4f75ba912 100644 --- a/frappe/public/js/frappe/utils/number_format.js +++ b/frappe/public/js/frappe/utils/number_format.js @@ -179,7 +179,7 @@ function get_currency_symbol(currency) { function get_number_format(currency) { let sysdefaults = frappe?.boot?.sysdefaults; return ( - (sysdefaults.use_number_format_from_currency && + (cint(sysdefaults?.use_number_format_from_currency) && currency && frappe.model.get_value(":Currency", currency, "number_format")) || sysdefaults.number_format ||