@measurequick/measurequick-report-generator 1.2.165 → 1.2.166

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.2.165",
3
+ "version": "1.2.166",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -162,7 +162,9 @@ export async function getReport(payload) {
162
162
  if (val == null || val == "null") val = "--";
163
163
  form.getTextField(`Block${blockNum}-Row${rowNum}-Col2${altLabel}`).setText(`${val}`);
164
164
  if (blockNum != 4) {
165
- let rangeIcon = util.getRangeIcon(test, measurement.ref, embeddedIcons);
165
+ let rangeIcon;
166
+ if ((measurement.label == 'Ambient CO' || measurement.label == 'Return CO' || measurement.label == 'Supply CO') && measurement.value > 9) rangeIcon = embeddedIcons.iconRangeHigh;
167
+ else rangeIcon = util.getRangeIcon(test, measurement.ref, embeddedIcons);
166
168
  if (rangeIcon && payload.meta.pdf_settings.includeRangeIndicators) form.getButton(`Block${blockNum}-Row${rowNum}-Col3`).setImage(rangeIcon);
167
169
  let toolIcon = false;
168
170
  if (measurement.ref == "superheat" || measurement.ref == "subcooling" || measurement.ref == "compression_ratio" || measurement.ref == "airflow_estimated") toolIcon = embeddedIcons.iconCalculator;
@@ -216,7 +216,8 @@ export async function getReport(payload, _test) {
216
216
  if (meas == "Caution") icon = iconRangeYellow;
217
217
  if (passFails[i] == 'heating_efficiency_pass_fail') icon = iconRangeGreen;
218
218
  form.getButton(`ImageSubsystem${i+1}_af_image`).setImage(icon);
219
- form.getTextField(`SSR${i+1}`).setText(pfLabels[i]);
219
+ let suffix = test.testInfo[passFails[i]+'_override'] ? ' *' : '';
220
+ form.getTextField(`SSR${i+1}`).setText(pfLabels[i] + suffix);
220
221
  }
221
222
  } else form.getTextField(`SSR1`).setText("Not yet reviewed");
222
223