clickup #6zrfkc
This commit is contained in:
@@ -665,6 +665,16 @@ function coreFormatPrice(value, digits) {
|
||||
var currency = 0;
|
||||
if (value) {
|
||||
currency = (value / 1).toFixed(digits);
|
||||
} else {
|
||||
currency = currency.toFixed(digits);
|
||||
}
|
||||
return currency.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
||||
}
|
||||
|
||||
function coreCurrencyToDecimal(currency) {
|
||||
var number = 0;
|
||||
if (currency) {
|
||||
number = Number(currency.replace(/[^0-9.-]+/g, ""));
|
||||
}
|
||||
return number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user