This commit is contained in:
2021-08-24 00:06:05 +00:00
parent dcfda2ba50
commit e8657b37bd

View File

@@ -213,13 +213,17 @@ export default {
); );
if (temp[i].decValue != null && temp[i].decValue != 0) { if (temp[i].decValue != null && temp[i].decValue != 0) {
//Note that initially we only haev "The Andy" WorkorderTotalExceedsThreshold = 23 to display a decValue if (temp[i].eventType == 23) {
//but if another comes can disambiuguate them here by event type and display currency or decimal as necessary //the "andy", dollars
temp[i].decValueViz = window.$gz.locale.currencyLocalized( temp[i].decValueViz = window.$gz.locale.currencyLocalized(
temp[i].decValue, temp[i].decValue,
languageName, languageName,
currencyName currencyName
); );
} else {
//it's for now only a meter reading so just keep as a straight up number
temp[i].decValueViz = temp[i].decValue.toString();
}
} else { } else {
temp[i].decValueViz = ""; temp[i].decValueViz = "";
} }