@measurequick/measurequick-report-generator 1.2.166 → 1.2.167
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
|
@@ -163,8 +163,13 @@ export async function getReport(payload) {
|
|
|
163
163
|
form.getTextField(`Block${blockNum}-Row${rowNum}-Col2${altLabel}`).setText(`${val}`);
|
|
164
164
|
if (blockNum != 4) {
|
|
165
165
|
let rangeIcon;
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
|
|
167
|
+
if (measurement.label == 'Ambient CO' || measurement.label == 'Return CO' || measurement.label == 'Supply CO') {
|
|
168
|
+
let v = measurement.value;
|
|
169
|
+
if (typeof v == 'string') v = parseFloat(v);
|
|
170
|
+
if (v > 9) rangeIcon = embeddedIcons.iconRangeHigh;
|
|
171
|
+
} else rangeIcon = util.getRangeIcon(test, measurement.ref, embeddedIcons);
|
|
172
|
+
|
|
168
173
|
if (rangeIcon && payload.meta.pdf_settings.includeRangeIndicators) form.getButton(`Block${blockNum}-Row${rowNum}-Col3`).setImage(rangeIcon);
|
|
169
174
|
let toolIcon = false;
|
|
170
175
|
if (measurement.ref == "superheat" || measurement.ref == "subcooling" || measurement.ref == "compression_ratio" || measurement.ref == "airflow_estimated") toolIcon = embeddedIcons.iconCalculator;
|