@measurequick/measurequick-report-generator 1.5.107 → 1.5.109
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
|
@@ -878,12 +878,10 @@ export async function getReport(payload, _test) {
|
|
|
878
878
|
|
|
879
879
|
let return_duct_loss = null;
|
|
880
880
|
let pct_return_duct_loss = null;
|
|
881
|
-
if (pct_leakage && test_data.
|
|
882
|
-
return_duct_loss = (
|
|
883
|
-
+pct_leakage * +test_data.test_data.capacity_total
|
|
884
|
-
).toFixed(0);
|
|
881
|
+
if (pct_leakage && test_data.capacity_total) {
|
|
882
|
+
return_duct_loss = (+pct_leakage * +test_data.capacity_total).toFixed(0);
|
|
885
883
|
pct_return_duct_loss = (
|
|
886
|
-
+return_duct_loss / +test_data.
|
|
884
|
+
+return_duct_loss / +test_data.capacity_total
|
|
887
885
|
).toFixed(0);
|
|
888
886
|
}
|
|
889
887
|
|
|
@@ -897,12 +895,12 @@ export async function getReport(payload, _test) {
|
|
|
897
895
|
//Supply Duct System Performance
|
|
898
896
|
let supply_duct_loss = null;
|
|
899
897
|
let pct_supply_duct_loss = null;
|
|
900
|
-
if (supply_pct_leakage && test_data.
|
|
898
|
+
if (supply_pct_leakage && test_data.capacity_total) {
|
|
901
899
|
supply_duct_loss = (
|
|
902
|
-
+supply_pct_leakage * +test_data.
|
|
900
|
+
+supply_pct_leakage * +test_data.capacity_total
|
|
903
901
|
).toFixed(0);
|
|
904
902
|
pct_supply_duct_loss = (
|
|
905
|
-
+supply_duct_loss / +test_data.
|
|
903
|
+
+supply_duct_loss / +test_data.capacity_total
|
|
906
904
|
).toFixed(0);
|
|
907
905
|
}
|
|
908
906
|
form
|
|
@@ -942,14 +940,14 @@ export async function getReport(payload, _test) {
|
|
|
942
940
|
|
|
943
941
|
for (let i = 0; i < supply_registers.length; i++) {
|
|
944
942
|
form
|
|
945
|
-
.getTextField("SupplyAirflow" + i + "Location")
|
|
943
|
+
.getTextField("SupplyAirflow" + (i + 1) + "Location")
|
|
946
944
|
.setText(
|
|
947
945
|
supply_registers[i].location
|
|
948
946
|
? supply_registers[i].location
|
|
949
947
|
: "Not specified"
|
|
950
948
|
);
|
|
951
949
|
form
|
|
952
|
-
.getTextField("SupplyAirflow" + i)
|
|
950
|
+
.getTextField("SupplyAirflow" + (i + 1))
|
|
953
951
|
.setText(supply_registers[i].airflow + " cfm");
|
|
954
952
|
}
|
|
955
953
|
|
|
@@ -962,14 +960,14 @@ export async function getReport(payload, _test) {
|
|
|
962
960
|
|
|
963
961
|
for (let i = 0; i < return_grilles.length; i++) {
|
|
964
962
|
form
|
|
965
|
-
.getTextField("ReturnAirflow" + i + "Location")
|
|
963
|
+
.getTextField("ReturnAirflow" + (i + 1) + "Location")
|
|
966
964
|
.setText(
|
|
967
965
|
return_grilles[i].location
|
|
968
966
|
? return_grilles[i].location
|
|
969
967
|
: "Not specified"
|
|
970
968
|
);
|
|
971
969
|
form
|
|
972
|
-
.getTextField("ReturnAirflow" + i)
|
|
970
|
+
.getTextField("ReturnAirflow" + (i + 1))
|
|
973
971
|
.setText(return_grilles[i].airflow + " cfm");
|
|
974
972
|
}
|
|
975
973
|
|