@measurequick/measurequick-report-generator 1.5.115 → 1.5.116

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.115",
3
+ "version": "1.5.116",
4
4
  "description": "Generates PDF documents for various measureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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
- ? duct_test["ductScreeningTestPoint" + af_map.entering]
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
- ? duct_test["ductScreeningTestPoint" + af_map.exiting]
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
- ? duct_test["ductScreeningTestPoint" + coil_map.entering]
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
- ? duct_test["ductScreeningTestPoint" + coil_map.exiting]
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