@measurequick/measurequick-report-generator 1.2.129 → 1.2.130
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
|
@@ -188,9 +188,9 @@ export async function getReport(payload, _test) {
|
|
|
188
188
|
let passFails = ["ambient_pass_fail", "control_system_pass_fail", "electrical_system_pass_fail", "air_distribution_system_pass_fail", "air_filtration_system_pass_fail", "condensate_drain_system_pass_fail", "indoor_equipment_pass_fail", "venting_system_pass_fail", "fuel_delivery_system_pass_fail", "make_up_air_system_pass_fail", "heat_exchanger_pass_fail", "safety_system_pass_fail", "heating_operation_pass_fail", "combustion_safety_pass_fail", "combustion_efficiency_pass_fail"];
|
|
189
189
|
let pfLabels = ["Ambient CO", "Control system (thermostat)", "Electrical system", "Air distribution system", "Air filtration system", "Condensate drain system", "Indoor equipment", "Venting system", "Fuel delivery system", "Make up air (CAZ)", "Heat exchanger", "Safety system", "Heating operation", "Combustion Safety", "Combustion efficiency"];
|
|
190
190
|
for (let i = 1; i <= passFails.length; i++) {
|
|
191
|
-
let meas = test.testInfo[passFails[i
|
|
191
|
+
let meas = test.testInfo[passFails[i-1]];
|
|
192
192
|
let icon = meas == "Pass" || meas == "Caution" || meas == "High" || meas == "Mid" ? iconRangeGreen : iconRangeRed;
|
|
193
|
-
if (passFails[i] == 'combustion_efficiency_pass_fail') icon = iconRangeGreen;
|
|
193
|
+
if (passFails[i-1] == 'combustion_efficiency_pass_fail') icon = iconRangeGreen;
|
|
194
194
|
form.getButton(`ImageSubsystem${i}_af_image`).setImage(icon);
|
|
195
195
|
form.getTextField(`SSR${i}`).setText(pfLabels[i-1]);
|
|
196
196
|
}
|