Merge pull request #27047 from GursheenK/currency-number-format

fix: use currency number format if present
This commit is contained in:
Gursheen Kaur Anand 2024-07-08 21:52:21 +05:30 committed by GitHub
commit 32ecbcca84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -178,6 +178,7 @@ function get_currency_symbol(currency) {
function get_number_format(currency) {
return (
(currency && frappe.model.get_value(":Currency", currency, "number_format")) ||
(frappe.boot && frappe.boot.sysdefaults && frappe.boot.sysdefaults.number_format) ||
"#,###.##"
);