@measurequick/measurequick-report-generator 1.2.140 → 1.2.142
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
|
@@ -172,6 +172,15 @@ export async function getReport(payload, _test) {
|
|
|
172
172
|
form.getTextField(`${measureLabels[i]}Target`).setText(targetZone);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
if (payload.meta.boiler_type == '') {
|
|
176
|
+
form.getTextField(`Header3`).setText('Air Distribution & Filtration');
|
|
177
|
+
form.getTextField(`Subheader4`).setText('Temperature Split');
|
|
178
|
+
form.getTextField(`Subheader5`).setText('Total External Static Pressure');
|
|
179
|
+
form.getTextField(`Subheader6`).setText('Filter Face Velocity');
|
|
180
|
+
} else {
|
|
181
|
+
form.getTextField(`Header3`).setText('Fluid Distribution');
|
|
182
|
+
}
|
|
183
|
+
|
|
175
184
|
let specialCaseIcon = iconRangeRed;
|
|
176
185
|
let specialCasePlacement = "Mid";
|
|
177
186
|
if (test.testInfo.data.coaf < 100) {
|
|
@@ -190,6 +199,14 @@ export async function getReport(payload, _test) {
|
|
|
190
199
|
let airDistLabel = payload.meta.boiler_type ? "Fluid distribution system" : "Air distribution system";
|
|
191
200
|
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_pass_fail", "heating_efficiency_pass_fail"];
|
|
192
201
|
let pfLabels = ["Ambient CO", "Control system (thermostat)", "Electrical system", airDistLabel, "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"];
|
|
202
|
+
if (payload.meta.boiler_type != '') {
|
|
203
|
+
passFails.splice(4, 1);
|
|
204
|
+
pfLabels.splice(4, 1);
|
|
205
|
+
}
|
|
206
|
+
if (payload.meta.boiler_type == 'Steam') {
|
|
207
|
+
passFails.splice(3, 1);
|
|
208
|
+
pfLabels.splice(3, 1);
|
|
209
|
+
}
|
|
193
210
|
for (let i = 0; i < passFails.length; i++) {
|
|
194
211
|
let meas = test.testInfo[passFails[i]];
|
|
195
212
|
let icon = meas == "Pass" || meas == "High" || meas == "Mid" ? iconRangeGreen : iconRangeRed;
|