@measurequick/measurequick-report-generator 1.5.89 → 1.5.90

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.89",
3
+ "version": "1.5.90",
4
4
  "description": "Generates PDF documents for various measureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -186,7 +186,7 @@ export async function getReport(payload, _test) {
186
186
  //this.data.csp_ratio
187
187
  let cep_ratio =
188
188
  payload.test && payload.test.cep_ratio
189
- ? (payload.test.cep_ratio * 100).toFixed(0) + "%"
189
+ ? (payload.test.cep_ratio * 100).toFixed(0).toString() + "%"
190
190
  : "N/A";
191
191
  let cep_description =
192
192
  "Your equipment is designed by the manufacturer to deliver a specific amount of air into your home. The Equipment " +
@@ -194,7 +194,7 @@ export async function getReport(payload, _test) {
194
194
  "The ideal score is 100%, but a score of 90% or better is excellent compared to most installed equipment.";
195
195
  let csp_ratio =
196
196
  payload.test && payload.test.csp_ratio
197
- ? (payload.test.csp_ratio * 100).toFixed(0) + "%"
197
+ ? (payload.test.csp_ratio * 100).toFixed(0).toString() + "%"
198
198
  : "N/A";
199
199
  let csp_description =
200
200
  "A system is made up of the equipment and a duct system that delivers air from the equipment into your home. The ideal " +
@@ -227,20 +227,20 @@ export async function getReport(payload, _test) {
227
227
  form.getTextField("TESPExiting").setText("TESPExiting");
228
228
 
229
229
  let tesp_value = duct_test.ductScreeningTESP
230
- ? duct_test.ductScreeningTESP.toFixed(2) + "inH2O"
230
+ ? +duct_test.ductScreeningTESP.toFixed(2).toString() + "inH2O"
231
231
  : "N/A";
232
232
  form.getTextField("TESPValue").setText(tesp_value);
233
233
  let tesp_rated = duct_test.ductScreeningTESPTarget
234
- ? duct_test.ductScreeningTESPTarget.toFixed(2) + "inH2O"
234
+ ? +duct_test.ductScreeningTESPTarget.toFixed(2).toString() + "inH2O"
235
235
  : "N/A";
236
236
  form.getTextField("TESPRated").setText(tesp_rated);
237
237
 
238
238
  let tesp_pct =
239
239
  duct_test.ductScreeningTESP && duct_test.ductScreeningTESPTarget
240
- ? (duct_test.ductScreeningTESP / duct_test.ductScreeningTESPTarget) *
240
+ ? (+duct_test.ductScreeningTESP / +duct_test.ductScreeningTESPTarget) *
241
241
  100
242
242
  : null;
243
- let tesp_pct_rated = tesp_pct ? tesp_pct.toFixed(0) : "N/A";
243
+ let tesp_pct_rated = tesp_pct ? tesp_pct.toFixed(0).toString() : "N/A";
244
244
  form.getTextField("TESPPercentRated").setText(tesp_pct_rated);
245
245
 
246
246
  let gauge = gauge10;
@@ -383,7 +383,7 @@ export async function getReport(payload, _test) {
383
383
  .setText(
384
384
  (+test["ductScreeningPressureDrop" + filter_pressure_drop + "Target"])
385
385
  .toFixed(2)
386
- .toString()
386
+ .toString() + " inH2O"
387
387
  );
388
388
  else {
389
389
  form.getTextField("AirFilterBudget").setText("--");
@@ -397,7 +397,7 @@ export async function getReport(payload, _test) {
397
397
  +test["ductScreeningPressureDrop" + filter_pressure_drop + "Target"]) *
398
398
  100;
399
399
 
400
- let filter_pct_budget = filter_pct ? filter_pct.toFixed(0) : "N/A";
400
+ let filter_pct_budget = filter_pct ? filter_pct.toFixed(0) + "%" : "N/A";
401
401
 
402
402
  form.getTextField("AirFilterPercentBudget").setText(filer_pct_budget);
403
403
 
@@ -437,14 +437,14 @@ export async function getReport(payload, _test) {
437
437
  .setText(
438
438
  (+test["ductScreeningPressureDrop" + supply_pressure + "Target"])
439
439
  .toFixed(2)
440
- .toString()
440
+ .toString() + " inH2O"
441
441
  );
442
442
  form
443
443
  .getTextField("TESPExiting")
444
444
  .setText(
445
445
  (+test["ductScreeningPressureDrop" + supply_pressure + "Target"])
446
446
  .toFixed(2)
447
- .toString()
447
+ .toString() + " inH2O"
448
448
  );
449
449
  } else {
450
450
  form.getTextField("SupplyBudget").setText("--");
@@ -456,7 +456,9 @@ export async function getReport(payload, _test) {
456
456
  +test["ductScreeningPressureDrop" + supply_pressure + "Target"]) *
457
457
  100;
458
458
 
459
- let supply_pct_budget = supply_pct ? supply_pct.toFixed(0) : "N/A";
459
+ let supply_pct_budget = supply_pct
460
+ ? supply_pct.toFixed(0).toString() + "%"
461
+ : "N/A";
460
462
 
461
463
  form.getTextField("SupplyPercentBudget").setText(supply_pct_budget);
462
464
 
@@ -505,7 +507,7 @@ export async function getReport(payload, _test) {
505
507
  .setText(
506
508
  (+test["ductScreeningPressureDrop" + return_pressure_drop + "Target"])
507
509
  .toFixed(2)
508
- .toString()
510
+ .toString() + " inH2O"
509
511
  );
510
512
  else form.getTextField("ReturnBudget").setText("--");
511
513
 
@@ -514,7 +516,9 @@ export async function getReport(payload, _test) {
514
516
  +test["ductScreeningPressureDrop" + return_pressure_drop + "Target"]) *
515
517
  100;
516
518
 
517
- let return_pct_budget = return_pct ? return_pct.toFixed(0) : "N/A";
519
+ let return_pct_budget = return_pct
520
+ ? return_pct.toFixed(0).toString() + "%"
521
+ : "N/A";
518
522
 
519
523
  form.getTextField("ReturnPercentBudget").setText(return_pct_budget);
520
524
 
@@ -539,13 +543,14 @@ export async function getReport(payload, _test) {
539
543
 
540
544
  let airflow = "";
541
545
  if (test.ductScreeningAirflow)
542
- airflow = test.ductScreeningAirflow.toFixed(0) + " cfm";
546
+ airflow = test.ductScreeningAirflow.toFixed(0).toString() + " cfm";
543
547
 
544
548
  form.getTextField("FanAirflowMeasured").setText(airflow);
545
549
 
546
550
  let airflow_required = "";
547
551
  if (test.ductScreeningAirflowTarget)
548
- airflow_required = test.ductScreeningAirflowTarget.toFixed(0) + " cfm";
552
+ airflow_required =
553
+ test.ductScreeningAirflowTarget.toFixed(0).toString() + " cfm";
549
554
  form.getTextField("FanAirflowRequired").setText(airflow_required);
550
555
 
551
556
  let airflow_pct = Math.abs(
@@ -553,7 +558,7 @@ export async function getReport(payload, _test) {
553
558
  );
554
559
 
555
560
  let airflow_pct_required = airflow_pct
556
- ? airflow_pct.toFixed(0) + "%"
561
+ ? airflow_pct.toFixed(0).toString() + "%"
557
562
  : "N/A";
558
563
 
559
564
  form