@measurequick/measurequick-report-generator 1.5.115 → 1.5.117
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
|
@@ -606,22 +606,22 @@ export async function getReport(payload, _test) {
|
|
|
606
606
|
|
|
607
607
|
let tesp_factors = getTESPPointsUsed(test.ductScreeningSystemType);
|
|
608
608
|
|
|
609
|
-
if (test["
|
|
609
|
+
if (test["ductScreeningTestPoint" + tesp_factors.entering]) {
|
|
610
610
|
form
|
|
611
611
|
.getTextField("TESPEntering")
|
|
612
612
|
.setText(
|
|
613
|
-
(+test["
|
|
613
|
+
(+test["ductScreeningTestPoint" + tesp_factors.entering])
|
|
614
614
|
.toFixed(2)
|
|
615
615
|
.toString() + " inH2O"
|
|
616
616
|
);
|
|
617
617
|
} else {
|
|
618
618
|
form.getTextField("TESPEntering").setText("--");
|
|
619
619
|
}
|
|
620
|
-
if (test["
|
|
620
|
+
if (test["ductScreeningTestPoint" + tesp_factors.exiting]) {
|
|
621
621
|
form
|
|
622
622
|
.getTextField("TESPExiting")
|
|
623
623
|
.setText(
|
|
624
|
-
(+test["
|
|
624
|
+
(+test["ductScreeningTestPoint" + tesp_factors.exiting])
|
|
625
625
|
.toFixed(2)
|
|
626
626
|
.toString() + " inH2O"
|
|
627
627
|
);
|
|
@@ -635,13 +635,15 @@ export async function getReport(payload, _test) {
|
|
|
635
635
|
filter_pressure_drop
|
|
636
636
|
);
|
|
637
637
|
let af_entering = af_map.entering
|
|
638
|
-
? duct_test["ductScreeningTestPoint" + af_map.entering]
|
|
639
|
-
|
|
638
|
+
? duct_test["ductScreeningTestPoint" + af_map.entering] ||
|
|
639
|
+
duct_test["ductScreeningTestPoint" + af_map.entering] === 0
|
|
640
|
+
? (+duct_test["ductScreeningTestPoint" + af_map.entering]).toFixed(2)
|
|
640
641
|
: null
|
|
641
642
|
: null;
|
|
642
643
|
let af_exiting = af_map.exiting
|
|
643
|
-
? duct_test["ductScreeningTestPoint" + af_map.exiting]
|
|
644
|
-
|
|
644
|
+
? duct_test["ductScreeningTestPoint" + af_map.exiting] ||
|
|
645
|
+
duct_test["ductScreeningTestPoint" + af_map.exiting] === 0
|
|
646
|
+
? (+duct_test["ductScreeningTestPoint" + af_map.exiting]).toFixed(2)
|
|
645
647
|
: null
|
|
646
648
|
: null;
|
|
647
649
|
form
|
|
@@ -689,13 +691,15 @@ export async function getReport(payload, _test) {
|
|
|
689
691
|
coil_pressure_drop
|
|
690
692
|
);
|
|
691
693
|
let coil_entering = coil_map.entering
|
|
692
|
-
? duct_test["ductScreeningTestPoint" + coil_map.entering]
|
|
693
|
-
|
|
694
|
+
? duct_test["ductScreeningTestPoint" + coil_map.entering] ||
|
|
695
|
+
duct_test["ductScreeningTestPoint" + coil_map.entering] === 0
|
|
696
|
+
? (+duct_test["ductScreeningTestPoint" + coil_map.entering]).toFixed(2)
|
|
694
697
|
: null
|
|
695
698
|
: null;
|
|
696
699
|
let coil_exiting = coil_map.exiting
|
|
697
|
-
? duct_test["ductScreeningTestPoint" + coil_map.exiting]
|
|
698
|
-
|
|
700
|
+
? duct_test["ductScreeningTestPoint" + coil_map.exiting] ||
|
|
701
|
+
duct_test["ductScreeningTestPoint" + coil_map.exiting] === 0
|
|
702
|
+
? (+duct_test["ductScreeningTestPoint" + coil_map.exiting]).toFixed(2)
|
|
699
703
|
: null
|
|
700
704
|
: null;
|
|
701
705
|
form
|
|
@@ -355,22 +355,22 @@ export async function getReport(payload, _test) {
|
|
|
355
355
|
|
|
356
356
|
let tesp_factors = getTESPPointsUsed(test.ductScreeningSystemType);
|
|
357
357
|
|
|
358
|
-
if (test["
|
|
358
|
+
if (test["ductScreeningTestPoint" + tesp_factors.entering]) {
|
|
359
359
|
form
|
|
360
360
|
.getTextField("TESPEntering")
|
|
361
361
|
.setText(
|
|
362
|
-
(+test["
|
|
362
|
+
(+test["ductScreeningTestPoint" + tesp_factors.entering])
|
|
363
363
|
.toFixed(2)
|
|
364
364
|
.toString() + " inH2O"
|
|
365
365
|
);
|
|
366
366
|
} else {
|
|
367
367
|
form.getTextField("TESPEntering").setText("--");
|
|
368
368
|
}
|
|
369
|
-
if (test["
|
|
369
|
+
if (test["ductScreeningTestPoint" + tesp_factors.exiting]) {
|
|
370
370
|
form
|
|
371
371
|
.getTextField("TESPExiting")
|
|
372
372
|
.setText(
|
|
373
|
-
(+test["
|
|
373
|
+
(+test["ductScreeningTestPoint" + tesp_factors.exiting])
|
|
374
374
|
.toFixed(2)
|
|
375
375
|
.toString() + " inH2O"
|
|
376
376
|
);
|