@measurequick/measurequick-report-generator 1.5.108 → 1.5.110
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
|
@@ -130,8 +130,11 @@ export async function getReport(payload, _test) {
|
|
|
130
130
|
.currently.temperature
|
|
131
131
|
) {
|
|
132
132
|
technicianParts.push(
|
|
133
|
-
|
|
134
|
-
.
|
|
133
|
+
"Outdoor Temp: " +
|
|
134
|
+
payload.project.tests[
|
|
135
|
+
payload.project.tests.length - 1
|
|
136
|
+
].testInfo.weather.currently.temperature.toFixed(1) +
|
|
137
|
+
" \u00B0F"
|
|
135
138
|
);
|
|
136
139
|
}
|
|
137
140
|
if (
|
|
@@ -147,8 +150,10 @@ export async function getReport(payload, _test) {
|
|
|
147
150
|
.elevation === 0)
|
|
148
151
|
) {
|
|
149
152
|
technicianParts.push(
|
|
150
|
-
|
|
151
|
-
.
|
|
153
|
+
"Altitude: " +
|
|
154
|
+
payload.project.tests[payload.project.tests.length - 1].testInfo.data
|
|
155
|
+
.elevation +
|
|
156
|
+
" ft"
|
|
152
157
|
);
|
|
153
158
|
}
|
|
154
159
|
|
|
@@ -242,6 +247,16 @@ export async function getReport(payload, _test) {
|
|
|
242
247
|
? payload.equipment.year_installed_ahu_furnace
|
|
243
248
|
: "N/A"
|
|
244
249
|
);
|
|
250
|
+
} else {
|
|
251
|
+
form.getTextField("AFUERating").setText("N/A");
|
|
252
|
+
form.getTextField("FuelType").setText("N/A");
|
|
253
|
+
form.getTextField("FurnaceType").setText("N/A");
|
|
254
|
+
form.getTextField("FurnaceManufacturer").setText("N/A");
|
|
255
|
+
form.getTextField("FurnaceModel").setText("N/A");
|
|
256
|
+
form.getTextField("RatedBTUInput").setText("N/A");
|
|
257
|
+
form.getTextField("RatedBTUOutput").setText("N/A");
|
|
258
|
+
form.getTextField("FurnaceSerial").setText("N/A");
|
|
259
|
+
form.getTextField("FurnaceYear").setText("N/A");
|
|
245
260
|
}
|
|
246
261
|
|
|
247
262
|
let duct_test =
|
|
@@ -812,7 +827,7 @@ export async function getReport(payload, _test) {
|
|
|
812
827
|
|
|
813
828
|
//Supply Duct Airflow
|
|
814
829
|
form
|
|
815
|
-
.getTextField("
|
|
830
|
+
.getTextField("SupplyAirflowTotal")
|
|
816
831
|
.setText(
|
|
817
832
|
payload.project.flow_hood.totalAirflow
|
|
818
833
|
? (+payload.project.flow_hood.totalAirflow).toFixed(0) + " cfm"
|
|
@@ -823,7 +838,7 @@ export async function getReport(payload, _test) {
|
|
|
823
838
|
let supply_pct_leakage = null;
|
|
824
839
|
if (payload.project.flow_hood.totalAirflow && test_data.airflow) {
|
|
825
840
|
supply_leakage = (
|
|
826
|
-
+payload.project.flow_hood.totalAirflow
|
|
841
|
+
+test_data.airflow - +payload.project.flow_hood.totalAirflow
|
|
827
842
|
).toFixed(0);
|
|
828
843
|
supply_pct_leakage = ((+leakage / +test_data.airflow) * 100).toFixed(0);
|
|
829
844
|
}
|
|
@@ -853,13 +868,15 @@ export async function getReport(payload, _test) {
|
|
|
853
868
|
.getTextField("EquipmentRatedBTU")
|
|
854
869
|
.setText(
|
|
855
870
|
test_targets.capacity_total
|
|
856
|
-
? test_targets.capacity_total + " Btu/hr"
|
|
871
|
+
? (+test_targets.capacity_total).toFixed(0) + " Btu/hr"
|
|
857
872
|
: "N/A"
|
|
858
873
|
);
|
|
859
874
|
form
|
|
860
875
|
.getTextField("EquipmentDeliveredBTU")
|
|
861
876
|
.setText(
|
|
862
|
-
test_data.capacity_total
|
|
877
|
+
test_data.capacity_total
|
|
878
|
+
? (+test_data.capacity_total).toFixed(0) + " Btu/hr"
|
|
879
|
+
: "N/A"
|
|
863
880
|
);
|
|
864
881
|
|
|
865
882
|
let equip_efficiency = null;
|
|
@@ -879,7 +896,10 @@ export async function getReport(payload, _test) {
|
|
|
879
896
|
let return_duct_loss = null;
|
|
880
897
|
let pct_return_duct_loss = null;
|
|
881
898
|
if (pct_leakage && test_data.capacity_total) {
|
|
882
|
-
return_duct_loss = (
|
|
899
|
+
return_duct_loss = (
|
|
900
|
+
(+pct_leakage / 100) *
|
|
901
|
+
+test_data.capacity_total
|
|
902
|
+
).toFixed(0);
|
|
883
903
|
pct_return_duct_loss = (
|
|
884
904
|
+return_duct_loss / +test_data.capacity_total
|
|
885
905
|
).toFixed(0);
|
|
@@ -897,7 +917,8 @@ export async function getReport(payload, _test) {
|
|
|
897
917
|
let pct_supply_duct_loss = null;
|
|
898
918
|
if (supply_pct_leakage && test_data.capacity_total) {
|
|
899
919
|
supply_duct_loss = (
|
|
900
|
-
+supply_pct_leakage *
|
|
920
|
+
(+supply_pct_leakage / 100) *
|
|
921
|
+
+test_data.capacity_total
|
|
901
922
|
).toFixed(0);
|
|
902
923
|
pct_supply_duct_loss = (
|
|
903
924
|
+supply_duct_loss / +test_data.capacity_total
|
|
@@ -915,14 +936,15 @@ export async function getReport(payload, _test) {
|
|
|
915
936
|
.getTextField("SystemDeliveredBTU")
|
|
916
937
|
.setText(
|
|
917
938
|
test_data.capacity_total_system
|
|
918
|
-
? test_data.capacity_total_system + " Btu/hr"
|
|
939
|
+
? (+test_data.capacity_total_system).toFixed(0) + " Btu/hr"
|
|
919
940
|
: "N/A"
|
|
920
941
|
);
|
|
921
942
|
|
|
922
943
|
let sys_measured_efficiency = null;
|
|
923
944
|
if (test_data.capacity_total_system && test_data.capacity_total)
|
|
924
945
|
sys_measured_efficiency = (
|
|
925
|
-
+test_data.capacity_total_system / +test_data.capacity_total
|
|
946
|
+
(+test_data.capacity_total_system / +test_data.capacity_total) *
|
|
947
|
+
100
|
|
926
948
|
).toFixed(0);
|
|
927
949
|
|
|
928
950
|
form
|
|
@@ -940,14 +962,14 @@ export async function getReport(payload, _test) {
|
|
|
940
962
|
|
|
941
963
|
for (let i = 0; i < supply_registers.length; i++) {
|
|
942
964
|
form
|
|
943
|
-
.getTextField("SupplyAirflow" + i + "Location")
|
|
965
|
+
.getTextField("SupplyAirflow" + (i + 1) + "Location")
|
|
944
966
|
.setText(
|
|
945
967
|
supply_registers[i].location
|
|
946
968
|
? supply_registers[i].location
|
|
947
969
|
: "Not specified"
|
|
948
970
|
);
|
|
949
971
|
form
|
|
950
|
-
.getTextField("SupplyAirflow" + i)
|
|
972
|
+
.getTextField("SupplyAirflow" + (i + 1))
|
|
951
973
|
.setText(supply_registers[i].airflow + " cfm");
|
|
952
974
|
}
|
|
953
975
|
|
|
@@ -960,14 +982,14 @@ export async function getReport(payload, _test) {
|
|
|
960
982
|
|
|
961
983
|
for (let i = 0; i < return_grilles.length; i++) {
|
|
962
984
|
form
|
|
963
|
-
.getTextField("ReturnAirflow" + i + "Location")
|
|
985
|
+
.getTextField("ReturnAirflow" + (i + 1) + "Location")
|
|
964
986
|
.setText(
|
|
965
987
|
return_grilles[i].location
|
|
966
988
|
? return_grilles[i].location
|
|
967
989
|
: "Not specified"
|
|
968
990
|
);
|
|
969
991
|
form
|
|
970
|
-
.getTextField("ReturnAirflow" + i)
|
|
992
|
+
.getTextField("ReturnAirflow" + (i + 1))
|
|
971
993
|
.setText(return_grilles[i].airflow + " cfm");
|
|
972
994
|
}
|
|
973
995
|
|