@measurequick/measurequick-report-generator 1.2.96 → 1.2.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -148,6 +148,8 @@ export async function getReport(payload) {
|
|
|
148
148
|
if (!val) val = "--";
|
|
149
149
|
else if (measurement.fixTo && typeof val == 'number') val = val.toFixed(measurement.fixTo);
|
|
150
150
|
if ((measurement.label == 'Ambient CO' || measurement.label == 'Return CO' || measurement.label == 'Supply CO') && !measurement.value) val = '0.0';
|
|
151
|
+
if (typeof val == 'number' || !isNaN(val)) val = val.toLocaleString("en-US");
|
|
152
|
+
else if (!isNaN(parseFloat(val)) val = parseFloat(val).toLocaleString("en-US");
|
|
151
153
|
form.getTextField(`Block${blockNum}-Row${rowNum}-Col2`).setText(`${val}`);
|
|
152
154
|
if (blockNum != 4) {
|
|
153
155
|
let rangeIcon = util.getRangeIcon(test, measurement.ref, embeddedIcons);
|