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) {
//Note that initially we only haev "The Andy" WorkorderTotalExceedsThreshold = 23 to display a decValue
//but if another comes can disambiuguate them here by event type and display currency or decimal as necessary
temp[i].decValueViz = window.$gz.locale.currencyLocalized(
temp[i].decValue,
languageName,
currencyName
);
if (temp[i].eventType == 23) {
//the "andy", dollars
temp[i].decValueViz = window.$gz.locale.currencyLocalized(
temp[i].decValue,
languageName,
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 {
temp[i].decValueViz = "";
}