@measurequick/measurequick-report-generator 1.1.75 → 1.1.76
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/package.json
CHANGED
|
@@ -16,7 +16,7 @@ export async function getReport(payload) {
|
|
|
16
16
|
"iconBluflame", "iconRedfish510", "iconRedfish510333", "iconRedfish550", "iconDg1000", "iconTrueflow", "iconThumbprintRed", "iconThumbprintGreen", "iconThumbprintYellow"];
|
|
17
17
|
for (let label of labels) embeddedIcons[label] = await pdfDoc.embedPng(util._base64ToArrayBuffer(base64[label]));
|
|
18
18
|
|
|
19
|
-
let scoreDeduction = payload.
|
|
19
|
+
let scoreDeduction = payload.meta.score_deduction;
|
|
20
20
|
let systemScorePercentage = +(100 - +(scoreDeduction.toFixed(0)));
|
|
21
21
|
let systemScoreGrade = util.getGradeFromScore(systemScorePercentage);
|
|
22
22
|
let systemScoreColor = util.getColorFromGrade(systemScoreGrade);
|
|
@@ -46,7 +46,7 @@ export async function getReport(payload) { console.log(payload);
|
|
|
46
46
|
form.getTextField('Time of Service').setText(date.toLocaleTimeString("en-US"));
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
let scoreDeduction = payload.
|
|
49
|
+
let scoreDeduction = payload.meta.score_deduction;
|
|
50
50
|
let systemScorePercentage = +(100 - +(scoreDeduction.toFixed(0)));
|
|
51
51
|
let systemScoreGrade = util.getGradeFromScore(systemScorePercentage);
|
|
52
52
|
let systemScoreColor = util.getColorFromGrade(systemScoreGrade);
|