@measurequick/measurequick-report-generator 1.4.13 → 1.4.14

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.4.13",
3
+ "version": "1.4.14",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -151,10 +151,10 @@ export async function getReport(payload) { // DAVID TODO
151
151
  }
152
152
  for (let i = 0; i < passFails.length; i++) {
153
153
  let meas = test[passFails[i]];
154
- let icon = meas == "Pass" || meas == "High" || meas == "Mid" ? iconRangeGreen : iconRangeRed;
155
- if (passFails[i] == 'heating_efficiency_pass_fail') icon = iconRangeGreen;
154
+ let icon = meas == "Pass" || meas == "High" || meas == "Mid" ? embeddedIcons.iconRangeGreen : embeddedIcons.iconRangeRed;
155
+ if (passFails[i] == 'heating_efficiency_pass_fail') icon = embeddedIcons.iconRangeGreen;
156
156
  let suffix = test[passFails[i] + '_override'] ? ' *' : '';
157
- if (meas == "Caution" || suffix == ' *') icon = iconRangeYellow;
157
+ if (meas == "Caution" || suffix == ' *') icon = embeddedIcons.iconRangeYellow;
158
158
  form.getTextField(`SSR${i + 1}`).setText(pfLabels[i] + suffix);
159
159
  form.getButton(`SSR${i + 1}`).setImage(icon);
160
160
  }