diff --git a/frappe/public/js/frappe/utils/number_systems.js b/frappe/public/js/frappe/utils/number_systems.js index 8224f11d37..ee04dd8271 100644 --- a/frappe/public/js/frappe/utils/number_systems.js +++ b/frappe/public/js/frappe/utils/number_systems.js @@ -31,4 +31,26 @@ export default { symbol: __("K", null, "Number system"), }, ], + nepalese: [ + { + divisor: 1.0e11, + symbol: __("Kh", null, "Number system"), // 10^11 is read as 1 Kharba + }, + { + divisor: 1.0e9, + symbol: __("Ar", null, "Number system"), // 10^9 is read as 1 Arba + }, + { + divisor: 1.0e7, + symbol: __("Cr", null, "Number system"), + }, + { + divisor: 1.0e5, + symbol: __("L", null, "Number system"), + }, + { + divisor: 1.0e3, + symbol: __("K", null, "Number system"), + }, + ], }; diff --git a/frappe/public/js/frappe/utils/utils.js b/frappe/public/js/frappe/utils/utils.js index e94452da4e..02305870cd 100644 --- a/frappe/public/js/frappe/utils/utils.js +++ b/frappe/public/js/frappe/utils/utils.js @@ -1170,8 +1170,10 @@ Object.assign(frappe.utils, { }, get_number_system: function (country) { - if (["Nepal", "Bangladesh", "India", "Myanmar", "Pakistan"].includes(country)) { + if (["Bangladesh", "India", "Myanmar", "Pakistan"].includes(country)) { return number_systems.indian; + } else if (country == "Nepal") { + return number_systems.nepalese; } else { return number_systems.default; }