[minor][fix] check boot.systemdefaults too

This commit is contained in:
Saurabh 2017-06-15 12:22:26 +05:30
parent fdd6873c5e
commit bf0198f08b

View file

@ -153,7 +153,7 @@ function get_currency_symbol(currency) {
}
function get_number_format(currency) {
return (frappe.boot && frappe.boot.sysdefaults.number_format) || "#,###.##";
return (frappe.boot && frappe.boot.sysdefaults && frappe.boot.sysdefaults.number_format) || "#,###.##";
}
function get_number_format_info(format) {