@measurequick/measurequick-report-generator 1.4.73 → 1.4.74
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
|
@@ -189,10 +189,13 @@ export async function getReport(payload, _test) {
|
|
|
189
189
|
let passFails = ["electrical_system_pass_fail", "air_distribution_system_pass_fail", "air_filtration_system_pass_fail", "condensate_drain_system_pass_fail", "refrigerant_charge_pass_fail", "outdoor_equipment_pass_fail", "indoor_equipment_pass_fail", "cooling_capacity_pass_fail", "cooling_electrical_efficiency_pass_fail"];
|
|
190
190
|
let pfLabels = ["Electrical system", "Air distribution system", "Air filtration system", "Condensate drain system", "Refrigerant charge", "Outdoor equipment", "Indoor equipment", "Cooling capacity", "Cooling electrical efficiency"];
|
|
191
191
|
for (let i = 1; i <= passFails.length; i++) {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
192
|
+
if (passFails[i]=== 'cooling_electrical_efficiency_pass_fail' && util.projectIsGoettl()){}
|
|
193
|
+
else {
|
|
194
|
+
let meas = t[passFails[i - 1]];
|
|
195
|
+
let icon = meas == "Pass" || meas == "High" || meas == "Mid" ? iconRangeGreen : iconRangeRed;
|
|
196
|
+
form.getButton(`ImageSubsystem${i}_af_image`).setImage(icon);
|
|
197
|
+
form.getTextField(`SSR${i}`).setText(pfLabels[i - 1]);
|
|
198
|
+
}
|
|
196
199
|
}
|
|
197
200
|
} else form.getTextField(`SSR1`).setText("Not yet reviewed");
|
|
198
201
|
|