fleetmap-reports 1.0.227 → 1.0.228
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 +1 -1
- package/src/kms-report.js +4 -0
package/package.json
CHANGED
package/src/kms-report.js
CHANGED
|
@@ -240,12 +240,14 @@ function exportKmsReportToExcel(userData, reportData) {
|
|
|
240
240
|
if(userData.groupByDay){
|
|
241
241
|
headers.push(
|
|
242
242
|
{label: translations.report.vehicle, value: 'name'},
|
|
243
|
+
{label: translations.report.licenseplate, value: 'licenseplate'},
|
|
243
244
|
{label: translations.report.group, value: 'group'},
|
|
244
245
|
{label: translations.report.date, value: 'date'},
|
|
245
246
|
{label: translations.report.distance, value: 'distance'})
|
|
246
247
|
} else if(userData.byDriver) {
|
|
247
248
|
headers.push(
|
|
248
249
|
{label: translations.report.driver, value: 'name'},
|
|
250
|
+
{label: translations.report.licenseplate, value: 'licenseplate'},
|
|
249
251
|
{label: translations.report.group, value: 'group'},
|
|
250
252
|
{label: translations.report.distance, value: 'distance'})
|
|
251
253
|
}
|
|
@@ -262,6 +264,7 @@ function exportKmsReportToExcel(userData, reportData) {
|
|
|
262
264
|
return {
|
|
263
265
|
name: userData.byDriver ? d.driver.name : d.device.name,
|
|
264
266
|
group: group ? group.name : '',
|
|
267
|
+
licenseplate: d.device.attributes.license_plate,
|
|
265
268
|
date: a.date,
|
|
266
269
|
distance: Number((a.kms / 1000).toFixed(0))
|
|
267
270
|
}
|
|
@@ -270,6 +273,7 @@ function exportKmsReportToExcel(userData, reportData) {
|
|
|
270
273
|
data = data.concat([{
|
|
271
274
|
name: userData.byDriver ? d.driver.name : d.summary.deviceName,
|
|
272
275
|
group: group ? group.name : '',
|
|
276
|
+
licenseplate: d.device.attributes.license_plate,
|
|
273
277
|
distance: Number((d.summary.distance / 1000).toFixed(0))
|
|
274
278
|
}])
|
|
275
279
|
}
|