@measurequick/measurequick-report-generator 1.0.25 → 1.0.26

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.
@@ -229,27 +229,6 @@ export const systemInfo = {
229
229
  }
230
230
  };
231
231
 
232
- export const footerData = [
233
- "customerFirstName",
234
- "customerLastName",
235
- "customerAddressLine1",
236
- "customerAddressLine2",
237
- "customerCity",
238
- "customerState",
239
- "customerZip",
240
- "customerEmail",
241
- "customerPhone",
242
- "systemNumber",
243
- "systenName",
244
- "systemId",
245
- "systemLat",
246
- "systemLng",
247
- "systemType",
248
- "systemMake",
249
- "systemModel",
250
- "systemSerial"
251
- ];
252
-
253
232
  export const profilePictureCoordinates = {
254
233
  "header": {
255
234
  "x": 7.5,
package/index.js CHANGED
@@ -138,13 +138,13 @@ function printCompanyLogo(logoPlacement, companyLogo) {
138
138
  function printFooterData(techName, profilePicture, companyLogo) {
139
139
  if (profilePicture) printProfilePicture("footer", techName, profilePicture);
140
140
  if (companyLogo) printCompanyLogo("footer", companyLogo);
141
-
141
+ doc.setTextColor(255, 255, 255);
142
142
  var s = .2;
143
143
  var x = 1;
144
144
  var y = 7;
145
- // templates.footerData.forEach(key => {
146
- for (var i = 0; i < templates.footerData.length; i++) {
147
- doc.text(reportData.values[templates.footerData[i]], x, y);
145
+ var key;
146
+ for (let key in reportData.footerData) {
147
+ doc.text(`${reportData.footerData[key]}`, x, y);
148
148
  y += s;
149
149
  });
150
150
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {