fleetmap-reports 1.0.666 → 1.0.667

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "1.0.666",
3
+ "version": "1.0.667",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -520,6 +520,7 @@ function exportZoneReportToExcel (userData, reportData) {
520
520
  }
521
521
  const headers = userData.groupByDay
522
522
  ? [
523
+ { label: translations.report.vehicle, value: 'name' },
523
524
  { label: translations.report.date, value: 'date' },
524
525
  { label: translations.report.firstIn, value: 'firstIn' },
525
526
  { label: translations.report.lastOut, value: 'lastOut' },
@@ -545,6 +546,7 @@ function exportZoneReportToExcel (userData, reportData) {
545
546
  data = userData.groupByDay
546
547
  ? data.concat(d.days.map(a => {
547
548
  return {
549
+ name: d.device.name,
548
550
  date: convertToLocaleDateString(a.date, userData.user.attributes.lang, userData.user.attributes.timezone),
549
551
  firstIn: a.firstIn ? convertToLocaleTimeString(a.firstIn, userData.user.attributes.lang, userData.user.attributes.timezone) : '-',
550
552
  lastOut: a.lastOut ? convertToLocaleTimeString(a.lastOut, userData.user.attributes.lang, userData.user.attributes.timezone) : '-',