@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 +2 -2
- package/assets/templates.js +7 -1
- package/index.js +6 -4
- package/package.json +1 -1
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
|
-
"
|
|
217
|
+
"subHeaderLabel1": "Condenser",
|
|
218
218
|
"systemMake": "Goodman",
|
|
219
219
|
"systemModel": "4582384532",
|
|
220
220
|
"systemSerial": "8459296520",
|
|
221
|
-
"
|
|
221
|
+
"subHeaderLabel2": "Air Handler",
|
|
222
222
|
"systemMake": "Newman",
|
|
223
223
|
"systemModel": "123456789",
|
|
224
224
|
"systemSerial": "asdfghjkl"
|
package/assets/templates.js
CHANGED
|
@@ -259,4 +259,10 @@ export const companyLogoCoordinates = {
|
|
|
259
259
|
}
|
|
260
260
|
};
|
|
261
261
|
|
|
262
|
-
|
|
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
|
|
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(
|
|
193
|
+
doc.text(templates.coolingInfoPage.body, 1, 1);
|
|
192
194
|
} else if (reportType == "heating") {
|
|
193
|
-
doc.text(
|
|
195
|
+
doc.text(templates.heatingInfoPage.body, 1, 1);
|
|
194
196
|
}
|
|
195
197
|
}
|
|
196
198
|
|