@measurequick/measurequick-report-generator 1.0.36 → 1.0.37

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
@@ -214,11 +214,11 @@ export const body = {
214
214
  "systemId": "9999999",
215
215
  "systemCoords": "13.24534534, 87.34563465",
216
216
  "systemType": "Split",
217
- "subHeaderLabel": "Condenser",
217
+ "subHeaderLabel1": "Condenser",
218
218
  "systemMake": "Goodman",
219
219
  "systemModel": "4582384532",
220
220
  "systemSerial": "8459296520",
221
- "subHeaderLabel": "Air Handler",
221
+ "subHeaderLabel2": "Air Handler",
222
222
  "systemMake": "Newman",
223
223
  "systemModel": "123456789",
224
224
  "systemSerial": "asdfghjkl"
@@ -259,4 +259,10 @@ export const companyLogoCoordinates = {
259
259
  }
260
260
  };
261
261
 
262
- // export const disclaimer = `Disclaimer: This report was prepared by your service technician who is solely responsible for its content. This report is provided “as-is” excluding all warranties expressed or implied including without limitation the warranty of merchantability. ©2017-${new Date().getFullYear()} Manifold Cloud Services Ltd.`;
262
+ export const coolingInfoPage = {
263
+ "body": "this is a cooling test"
264
+ };
265
+
266
+ export const heatingInfoPage = {
267
+ "body": "this is a heating test"
268
+ };
package/index.js CHANGED
@@ -167,9 +167,11 @@ function printFooterData(techName, profilePicture, companyLogo) {
167
167
  for (let key in reportData.footerData) {
168
168
  if (key == "columnBreak") {
169
169
  x += 2;
170
- y = 8;
171
- } else if (key == "subHeaderLabel") {
170
+ y = 8 + s;
171
+ } else if (key.includes("subHeaderLabel")) {
172
+ doc.setFontType("bold");
172
173
  doc.text(`${reportData.footerData[key]}`, x, y);
174
+ doc.setFontType("normal");
173
175
  y += s;
174
176
  } else {
175
177
  doc.text(`${reportData.footerData[key]}`, x, y);
@@ -188,9 +190,9 @@ function printPhotos(photoArray) {
188
190
  function printInfoPage(reportType) {
189
191
  doc.addPage();
190
192
  if (reportType == "cooling") {
191
- doc.text("THIS IS A COOLING INFO PAGE", 1, 1);
193
+ doc.text(templates.coolingInfoPage.body, 1, 1);
192
194
  } else if (reportType == "heating") {
193
- doc.text("THIS IS A HEATING INFO PAGE", 1, 1);
195
+ doc.text(templates.heatingInfoPage.body, 1, 1);
194
196
  }
195
197
  }
196
198
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {