@measurequick/measurequick-report-generator 1.5.147 → 1.5.149
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
|
@@ -939,7 +939,8 @@ export async function getReport(payload, _test) {
|
|
|
939
939
|
let equipment_rated_btu = test_targets.capacity_total
|
|
940
940
|
? (+test_targets.capacity_total).toFixed(0)
|
|
941
941
|
: null;
|
|
942
|
-
|
|
942
|
+
|
|
943
|
+
if (!isCooling && payload.equipment.heat_type !== "Heat Pump") {
|
|
943
944
|
equipment_rated_btu = payload.equipment.gas_output_rated
|
|
944
945
|
? payload.equipment.gas_output_rated
|
|
945
946
|
: null;
|
|
@@ -957,12 +958,10 @@ export async function getReport(payload, _test) {
|
|
|
957
958
|
);
|
|
958
959
|
|
|
959
960
|
let equip_efficiency = null;
|
|
960
|
-
if (
|
|
961
|
+
if (equipment_rated_btu)
|
|
961
962
|
equip_efficiency =
|
|
962
|
-
(
|
|
963
|
-
|
|
964
|
-
100
|
|
965
|
-
).toFixed(0) + "%";
|
|
963
|
+
((test_data.capacity_total / +equipment_rated_btu) * 100).toFixed(0) +
|
|
964
|
+
"%";
|
|
966
965
|
|
|
967
966
|
form
|
|
968
967
|
.getTextField("EquipmentMeasuredEfficiency")
|
|
@@ -1060,9 +1059,9 @@ export async function getReport(payload, _test) {
|
|
|
1060
1059
|
);
|
|
1061
1060
|
|
|
1062
1061
|
let sys_measured_efficiency = null;
|
|
1063
|
-
if (
|
|
1062
|
+
if (equipment_rated_btu)
|
|
1064
1063
|
sys_measured_efficiency = (
|
|
1065
|
-
(+test_data.capacity_total_system / +
|
|
1064
|
+
(+test_data.capacity_total_system / +equipment_rated_btu) *
|
|
1066
1065
|
100
|
|
1067
1066
|
).toFixed(0);
|
|
1068
1067
|
|
|
@@ -65,7 +65,12 @@ export async function getReport(payload, _test) {
|
|
|
65
65
|
const form = pdfDoc.getForm();
|
|
66
66
|
let textFields = getTextFields(payload);
|
|
67
67
|
|
|
68
|
-
let isCooling =
|
|
68
|
+
let isCooling =
|
|
69
|
+
payload &&
|
|
70
|
+
payload.project &&
|
|
71
|
+
payload.project.specialProjectType !== "ComfortMaxx Heating"
|
|
72
|
+
? true
|
|
73
|
+
: false;
|
|
69
74
|
if (isCooling)
|
|
70
75
|
form.getTextField("Title").setText("Cooling System Verify Test");
|
|
71
76
|
else form.getTextField("Title").setText("Heating System Verify Test");
|