Merge pull request #28217 from cogk/fix-number-format-sysdefault-is-string-not-int
fix(format): Fix sysdefault is string not number
This commit is contained in:
commit
0243279712
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue