This commit is contained in:
2020-02-07 00:59:01 +00:00
parent ff35bda367
commit 6fe73e2892
2 changed files with 14 additions and 1 deletions

View File

@@ -394,6 +394,19 @@ export default {
currency: currencyName
}).format(value);
},
///////////////////////////////////////////
// Turn a decimal number into a local
// decimal format display
//
decimalLocalized(value, languageName) {
if (!value) return "";
if (!languageName) {
languageName = this.getBrowserLanguages();
}
return new Intl.NumberFormat(languageName, {
minimumFractionDigits: 2
}).format(value);
},
////////////////////////////////////////////////////////
// dynamically set the vuetify language elements from
// users localized text (am/pm etc)

View File

@@ -477,7 +477,7 @@ function buildRecords(listData, columndefinitions, filters) {
// display = filters.boolastext(display);
// break;
case 7: //decimal
display = filters.decimal(display);
display = window.$gz.locale.decimalLocalized(display, languageName);
break;
case 8: //currency
display = window.$gz.locale.currencyLocalized(