From 454e48c397264addb5cc2a918aa248723b41b053 Mon Sep 17 00:00:00 2001 From: Gursheen Anand Date: Mon, 8 Jul 2024 19:42:16 +0530 Subject: [PATCH] fix: use currency number format if present --- frappe/public/js/frappe/utils/number_format.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frappe/public/js/frappe/utils/number_format.js b/frappe/public/js/frappe/utils/number_format.js index e0e8f00366..d5cef586f7 100644 --- a/frappe/public/js/frappe/utils/number_format.js +++ b/frappe/public/js/frappe/utils/number_format.js @@ -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) || "#,###.##" );