@measurequick/measurequick-report-generator 1.5.94 → 1.5.96
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
|
@@ -188,10 +188,13 @@ export async function getReport(payload, _test) {
|
|
|
188
188
|
payload &&
|
|
189
189
|
payload.project &&
|
|
190
190
|
payload.project.tests &&
|
|
191
|
-
payload.
|
|
192
|
-
payload.
|
|
191
|
+
payload.project.tests[payload.project.tests.length - 1] &&
|
|
192
|
+
payload.project.tests[payload.project.tests.length - 1].testInfo &&
|
|
193
|
+
payload.project.tests[payload.project.tests.length - 1].testInfo.data &&
|
|
194
|
+
payload.project.tests[payload.project.tests.length - 1].testInfo.data
|
|
195
|
+
.cep_ratio
|
|
193
196
|
? (
|
|
194
|
-
payload.
|
|
197
|
+
payload.project.tests[payload.project.tests.length - 1].cep_ratio *
|
|
195
198
|
100
|
|
196
199
|
)
|
|
197
200
|
.toFixed(0)
|
|
@@ -205,10 +208,13 @@ export async function getReport(payload, _test) {
|
|
|
205
208
|
payload &&
|
|
206
209
|
payload.project &&
|
|
207
210
|
payload.project.tests &&
|
|
208
|
-
payload.
|
|
209
|
-
payload.
|
|
211
|
+
payload.project.tests[payload.project.tests.length - 1] &&
|
|
212
|
+
payload.project.tests[payload.project.tests.length - 1].testInfo &&
|
|
213
|
+
payload.project.tests[payload.project.tests.length - 1].testInfo.data &&
|
|
214
|
+
payload.project.tests[payload.project.tests.length - 1].testInfo.data
|
|
215
|
+
.csp_ratio
|
|
210
216
|
? (
|
|
211
|
-
payload.
|
|
217
|
+
payload.project.tests[payload.project.tests.length - 1].csp_ratio *
|
|
212
218
|
100
|
|
213
219
|
)
|
|
214
220
|
.toFixed(0)
|
|
@@ -1059,15 +1065,11 @@ function getTextFields(payload) {
|
|
|
1059
1065
|
payload.site.customer.first_name && payload.site.customer.last_name
|
|
1060
1066
|
? `${payload.site.customer.first_name} ${payload.site.customer.last_name}`
|
|
1061
1067
|
: "",
|
|
1062
|
-
address: payload.site.location.address
|
|
1063
|
-
address2: payload.site.location.address2
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
state: payload.site.location.state
|
|
1068
|
-
? `, ${payload.site.location.state}`
|
|
1069
|
-
: "",
|
|
1070
|
-
zip: payload.site.location.zip ? ` ${payload.site.location.zip}` : "",
|
|
1068
|
+
address: payload.site.location.address || "",
|
|
1069
|
+
address2: payload.site.location.address2 || "",
|
|
1070
|
+
city: payload.site.location.city || "",
|
|
1071
|
+
state: payload.site.location.state || "",
|
|
1072
|
+
zip: payload.site.location.zip || "",
|
|
1071
1073
|
};
|
|
1072
1074
|
}
|
|
1073
1075
|
|