@measurequick/measurequick-report-generator 1.5.218 → 1.5.219
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
|
@@ -244,6 +244,23 @@ export async function getReport(payload, _test) {
|
|
|
244
244
|
safeSetText(form, "TimeOfServiceUpper", date.toLocaleTimeString("en-US"));
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
+
// Build equipment info and set "Information Text" field with shortened description
|
|
248
|
+
const equipment = payload.equipment || {};
|
|
249
|
+
let equipmentLines = [];
|
|
250
|
+
// Try furnace/air handler fields first, then fall back to condenser fields
|
|
251
|
+
const make = equipment.ah_make || equipment.furnace_make || equipment.condenser_make;
|
|
252
|
+
const model = equipment.ah_model || equipment.furnace_model || equipment.condenser_model;
|
|
253
|
+
const serial = equipment.ah_serial || equipment.furnace_serial || equipment.condenser_serial;
|
|
254
|
+
if (make) equipmentLines.push("Make: " + make);
|
|
255
|
+
if (model) equipmentLines.push("Model: " + model);
|
|
256
|
+
if (serial) equipmentLines.push("Serial: " + serial);
|
|
257
|
+
|
|
258
|
+
let infoText = "What Are Your System Vitals?\nYour system vitals show the overall health of your heating system. These vitals account for both the combustion and air delivery of the system.";
|
|
259
|
+
if (equipmentLines.length > 0) {
|
|
260
|
+
infoText = equipmentLines.join("\n") + "\n\n" + infoText;
|
|
261
|
+
}
|
|
262
|
+
safeSetText(form, "Information Text", infoText);
|
|
263
|
+
|
|
247
264
|
let systemScorePercentage = test.testInfo.data.vitals_score
|
|
248
265
|
? +test.testInfo.data.vitals_score.toFixed(0)
|
|
249
266
|
: 0;
|