fleetmap-reports 1.0.630 → 1.0.631

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.630",
3
+ "version": "1.0.631",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -258,7 +258,7 @@ async function exportIdleReportToPDF (userData, reportData) {
258
258
  getIdleEventDate(a.position, userData.user),
259
259
  getIdleEventTime(a.position, userData.user),
260
260
  getIdleEventTime(a.lastPosition, userData.user),
261
- a.position.address,
261
+ a.endPOIName || a.position.address,
262
262
  convertMS(a.idleTime, true),
263
263
  userData.byDriver ? a.deviceName : getDriver(a, userData.drivers)
264
264
  ]
@@ -347,7 +347,7 @@ function exportIdleReportToExcel (userData, reportData) {
347
347
  start: getIdleEventTime(a.position, userData.user),
348
348
  end: getIdleEventTime(a.lastPosition, userData.user),
349
349
  subname: userData.byDriver ? a.deviceName : getDriver(a, userData.drivers),
350
- address: a.position.address + (a.geofenceName ? ' - ' + a.geofenceName : '')
350
+ address: a.endPOIName || a.position.address
351
351
  }
352
352
  }))
353
353
  // Totals