@measurequick/measurequick-report-generator 1.0.32 → 1.0.34

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/assets/request.js CHANGED
@@ -212,7 +212,7 @@ export const body = {
212
212
  "customerEmail": "test@email.com",
213
213
  "customerPhone": "123-456-7899",
214
214
  "systemNumber": "123456789",
215
- "systenName": "Test System",
215
+ "systemName": "Test System",
216
216
  "systemId": "9999999",
217
217
  "systemLat": "13.24534534",
218
218
  "systemLng": "87.34563465",
@@ -229,68 +229,68 @@ export const systemInfo = {
229
229
  }
230
230
  };
231
231
 
232
- export const footerData = {
233
- "headerLabel": "Customer",
234
- "customerFirstName": {
235
- "label": ""
236
- },
237
- "customerLastName": {
238
- "label": ""
239
- },
240
- "customerAddressLine1": {
241
- "label": ""
242
- },
243
- "customerAddressLine2": {
244
- "label": ""
245
- },
246
- "customerCity": {
247
- "label": ""
248
- },
249
- "customerState": {
250
- "label": ""
251
- },
252
- "customerZip": {
253
- "label": ""
254
- },
255
- "customerEmail": {
256
- "label": ""
257
- },
258
- "customerPhone": {
259
- "label": ""
260
- },
261
- "columnBreak": {
262
- "label": ""
263
- },
264
- "headerLabel": "Customer",
265
- "systemNumber": {
266
- "label": ""
267
- },
268
- "systenName": {
269
- "label": ""
270
- },
271
- "systemId": {
272
- "label": "ID"
273
- },
274
- "systemLat": {
275
- "label": ""
276
- },
277
- "systemLng": {
278
- "label": ""
279
- },
280
- "subHeaderLabel": "Condenser",
281
- "systemType": {
282
- "label": ""
283
- },
284
- "systemMake": {
285
- "label": ""
286
- },
287
- "systemModel": {
288
- "label": ""
289
- },
290
- "systemSerial": {
291
- "label": ""
292
- }
293
- };
232
+ // export const footerData = {
233
+ // "headerLabel": "Customer",
234
+ // "customerFirstName": {
235
+ // "label": ""
236
+ // },
237
+ // "customerLastName": {
238
+ // "label": ""
239
+ // },
240
+ // "customerAddressLine1": {
241
+ // "label": ""
242
+ // },
243
+ // "customerAddressLine2": {
244
+ // "label": ""
245
+ // },
246
+ // "customerCity": {
247
+ // "label": ""
248
+ // },
249
+ // "customerState": {
250
+ // "label": ""
251
+ // },
252
+ // "customerZip": {
253
+ // "label": ""
254
+ // },
255
+ // "customerEmail": {
256
+ // "label": ""
257
+ // },
258
+ // "customerPhone": {
259
+ // "label": ""
260
+ // },
261
+ // "columnBreak": {
262
+ // "label": ""
263
+ // },
264
+ // "headerLabel": "Customer",
265
+ // "systemNumber": {
266
+ // "label": ""
267
+ // },
268
+ // "systenName": {
269
+ // "label": ""
270
+ // },
271
+ // "systemId": {
272
+ // "label": "ID"
273
+ // },
274
+ // "systemLat": {
275
+ // "label": ""
276
+ // },
277
+ // "systemLng": {
278
+ // "label": ""
279
+ // },
280
+ // "subHeaderLabel1": "Condenser",
281
+ // "systemType": {
282
+ // "label": ""
283
+ // },
284
+ // "systemMake": {
285
+ // "label": ""
286
+ // },
287
+ // "systemModel": {
288
+ // "label": ""
289
+ // },
290
+ // "systemSerial": {
291
+ // "label": ""
292
+ // }
293
+ // };
294
294
 
295
295
  export const profilePictureCoordinates = {
296
296
  "header": {
package/index.js CHANGED
@@ -95,8 +95,10 @@ function printSingleBodySection(dataPoints, xLeft, xRight, y) {
95
95
  for (let key in dataPoints) {
96
96
  if (key == "headerLabel") {
97
97
  doc.setFontStyle("bold");
98
+ doc.setFontSize(9);
98
99
  doc.text(dataPoints.headerLabel, xLeft, y);
99
100
  doc.setFontStyle("normal");
101
+ doc.setFontSize(8);
100
102
  y += .22;
101
103
  } else if (key.includes("subHeaderLabel")) {
102
104
  doc.setFontStyle("bold");
@@ -145,15 +147,53 @@ function printCompanyLogo(logoPlacement, companyLogo) {
145
147
  function printFooterData(techName, profilePicture, companyLogo) {
146
148
  if (profilePicture) printProfilePicture("footer", techName, profilePicture);
147
149
  if (companyLogo) printCompanyLogo("footer", companyLogo);
150
+
148
151
  doc.setTextColor(255, 255, 255);
152
+
149
153
  var s = .2;
150
154
  var x = .2;
151
155
  var y = 8;
152
156
  var key;
157
+
158
+ doc.setFontType("bold");
159
+ doc.setFontSize(12);
160
+ doc.text("Customer", x, y);
161
+ doc.text(reportData.footerData.systemName, x + 2, y);
162
+ doc.setFontType("normal");
163
+ doc.setFontSize(10);
164
+
153
165
  for (let key in templates.footerData) {
154
- doc.text(`${reportData.footerData[key]}`, x, y);
155
- y += s;
166
+ if (key == "columnBreak") {
167
+ x += 2;
168
+ y = 8;
169
+ } else if (key == "subHeaderLabel") {
170
+
171
+ } else {
172
+ doc.text(`${reportData.footerData[key]}`, x, y);
173
+ y += s;
174
+ }
156
175
  }
176
+
177
+ // print customer info, line-by-line
178
+
179
+ // new column
180
+
181
+ // print dynamic equipment name
182
+
183
+ // print static subheader "ID"
184
+
185
+ // print sysem coordinates
186
+
187
+ // print static subheader "Condenser"
188
+
189
+ // print condenser info, line-by-line
190
+
191
+ // print static subheader "Air Handler"
192
+
193
+ // print air handler info, line-by-line
194
+
195
+
196
+
157
197
  }
158
198
 
159
199
  function printPhotos(photoArray) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {