@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.
- package/assets/templates.js +0 -21
- package/index.js +4 -4
- package/package.json +1 -1
package/assets/templates.js
CHANGED
|
@@ -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
|
-
|
|
146
|
-
for (
|
|
147
|
-
doc.text(reportData.
|
|
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
|
}
|