@measurequick/measurequick-report-generator 1.2.89 → 1.2.91

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.2.89",
3
+ "version": "1.2.91",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -67,7 +67,7 @@ export async function getReport(payload) { console.log(payload);
67
67
  try {
68
68
  if (payload.tests && payload.tests[1] && payload.tests[1].testInfo && payload.tests[1]) {
69
69
  payload.meta.header = "Test Out A/C Vitals";
70
- let vitalsReportBase64 = payload.meta.report_mode == "cooling" ? await vitalsCoolingReport.getReport(payload, payload.tests[1]) : await vitalsHeatingReport.getReport(payload);
70
+ let vitalsReportBase64 = payload.meta.report_mode == "cooling" ? await vitalsCoolingReport.getReport(payload, payload.tests[1]) : await vitalsHeatingReport.getReport(payload, payload.tests[1]);
71
71
  const vitalsReportDoc = await PDFDocument.load(util._base64ToArrayBuffer(vitalsReportBase64));
72
72
  const [_vitalsReportPg1] = await coreDoc.copyPages(vitalsReportDoc, [0]);
73
73
  const [_vitalsReportPg2] = await coreDoc.copyPages(vitalsReportDoc, [1]);
@@ -124,7 +124,9 @@ export async function getReport(payload) {
124
124
 
125
125
  if (mapImagePg1 && t == 0) form.getButton('Map Image').setImage(mapImagePg1);
126
126
  if (mapImagePg2 && t == 1) form.getButton('Map Image').setImage(mapImagePg2);
127
- form.getTextField('Information Text').setText("What Are Your System Vitals?\nJust like your health vitals, temperature, pulse, blood pressure etc, your A/C system vitals show the overall health of your air conditioning system. These vitals account for both the refrigerant and air delivery side of the system. System targets that are out of range are typically related to a system diagnostic listed below. Correcting the diagnostic faults, if possible, should put the system vitals back in the normal range.");
127
+ let infoText = "What Are Your System Vitals?\nJust like your health vitals, temperature, pulse, blood pressure etc, your A/C system vitals show the overall health of your air conditioning system. These vitals account for both the refrigerant and air delivery side of the system. System targets that are out of range are typically related to a system diagnostic listed below. Correcting the diagnostic faults, if possible, should put the system vitals back in the normal range.";
128
+ if (payload.meta.report_mode == 'heating') infoText = "What Are Your System Vitals?\nJust like your health vitals, temperature, pulse, and\nblood pressure etc, for Heating System vitals represent\nthe overall health of your heating system. These vitals\naccount for age, safety and efficiency, fuel input as\nwell as the airside performance of the system. System\ntargets that are out of range are typically related to\nsystem diagnostics below. Correcting the system faults\nshould put the system back into the normal range.";
129
+ form.getTextField('Information Text').setText(infoText);
128
130
 
129
131
  for (let blockNum = 1; blockNum < 5; blockNum++) {
130
132
  form.getTextField(`Block${blockNum}-Title`).setText(payload[section][`title${blockNum}`]);