@measurequick/measurequick-report-generator 1.0.65 → 1.0.66

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.
@@ -127,6 +127,7 @@ function printBodySection(currentSnapshot, measurementSection, xLeft, xRight, y)
127
127
  let sMultiplier = 1;
128
128
 
129
129
  for (let key in dataPoints.values) {
130
+ if (key == "condenserVoltageSource" || key == "condenserAmperageSource" || key == "airHandlerVoltageSource" || key == "airHandlerAmperageSource") break;
130
131
  let dataPoint = dataPoints.values[key];
131
132
  let valueBeforeEditing = dataPoint;
132
133
  let templateRef = templates[measurementSection][key];
@@ -135,6 +136,8 @@ function printBodySection(currentSnapshot, measurementSection, xLeft, xRight, y)
135
136
  if (templateRef.hasOwnProperty("units")) {
136
137
  units = Array.isArray(templateRef.units) ? `(${templateRef.units[0]} / ${templateRef.units[1]})` : `(${templateRef.units})`;
137
138
  labelText += ` ${units}:`;
139
+ if ((key == "condenserVoltage" || key == "condenserAmperage" || key == "airHandlerVoltage" || key == "airHandlerAmperage") && dataPoints.values[`${key}Source`])
140
+ doc.addImage(graphics[dataPoints.values[`${key}Source`]], "JPEG", xRight + .25, y - .12, .16, .16);
138
141
  } else labelText += ':';
139
142
  if (templateRef.hasOwnProperty("roundTo")) {
140
143
  dataPoint *= 1;
@@ -176,7 +179,7 @@ function printBodySection(currentSnapshot, measurementSection, xLeft, xRight, y)
176
179
  y = yTop;
177
180
  } else if (key == "newRow") {
178
181
  y += .35;
179
- }
182
+ } else console.log("No Template Found for: " + key);
180
183
  }
181
184
  }
182
185
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.0.65",
3
+ "version": "1.0.66",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {