@measurequick/measurequick-report-generator 1.5.98 → 1.5.100

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.5.98",
3
+ "version": "1.5.100",
4
4
  "description": "Generates PDF documents for various measureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -193,12 +193,8 @@ export async function getReport(payload, _test) {
193
193
  payload.project.tests[payload.project.tests.length - 1].testInfo.data &&
194
194
  payload.project.tests[payload.project.tests.length - 1].testInfo.data
195
195
  .cep_ratio
196
- ? (
197
- payload.project.tests[payload.project.tests.length - 1].testInfo
198
- .data.cep_ratio * 100
199
- )
200
- .toFixed(0)
201
- .toString() + "%"
196
+ ? payload.project.tests[payload.project.tests.length - 1].testInfo.data
197
+ .cep_ratio * 100
202
198
  : "N/A";
203
199
  let cep_description =
204
200
  "Your equipment is designed by the manufacturer to deliver a specific amount of air into your home. The Equipment " +
@@ -213,26 +209,26 @@ export async function getReport(payload, _test) {
213
209
  payload.project.tests[payload.project.tests.length - 1].testInfo.data &&
214
210
  payload.project.tests[payload.project.tests.length - 1].testInfo.data
215
211
  .csp_ratio
216
- ? (
217
- payload.project.tests[payload.project.tests.length - 1].testInfo
218
- .data.csp_ratio * 100
219
- )
220
- .toFixed(0)
221
- .toString() + "%"
212
+ ? payload.project.tests[payload.project.tests.length - 1].testInfo.data
213
+ .csp_ratio * 100
222
214
  : "N/A";
223
215
  let csp_description =
224
216
  "A system is made up of the equipment and a duct system that delivers air from the equipment into your home. The ideal " +
225
217
  "System Performance Score is 100%. A lower score reveals unseen problems in your system that increase utility bills and reduce " +
226
218
  "your comfort. A System Performance Score of 80% or better is excellent compared to most installed systems.";
227
219
 
228
- form.getTextField("HEPEfficiency").setText(cep_ratio);
220
+ form
221
+ .getTextField("HEPEfficiency")
222
+ .setText(cep_ratio.toFixed(0).toString() + "%");
229
223
  if (cep_ratio < 80) form.getButton("HEPLow").setImage(iconRangeRed);
230
224
  else if (cep_ratio >= 80 && cep_ratio <= 100)
231
225
  form.getButton("HEPNormal").setImage(iconRangeGreen);
232
226
  else if (cep_ratio > 100) form.getButton("HEPHigh").setImage(iconRangeRed);
233
227
  form.getTextField("HEPDescription").setText(cep_description);
234
228
 
235
- form.getTextField("HSPEfficiency").setText(csp_ratio);
229
+ form
230
+ .getTextField("HSPEfficiency")
231
+ .setText(csp_ratio.toFixed(0).toString() + "%");
236
232
  if (csp_ratio < 70) form.getButton("HSPLow").setImage(iconRangeRed);
237
233
  else if (csp_ratio >= 70 && csp_ratio <= 100)
238
234
  form.getButton("HSPNormal").setImage(iconRangeGreen);