fleetmap-reports 1.0.901 → 1.0.904
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/activity-report.js +1 -1
- package/src/zone-report.js +1 -1
package/package.json
CHANGED
package/src/activity-report.js
CHANGED
|
@@ -181,7 +181,7 @@ function processDevices (from, to, devices, data, userData) {
|
|
|
181
181
|
const fromByDay = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0)
|
|
182
182
|
const toByDay = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 23, 59, 59)
|
|
183
183
|
|
|
184
|
-
const tripsByDay = trips.filter(t => (new Date(t.startTime) > fromByDay && new Date(t.
|
|
184
|
+
const tripsByDay = trips.filter(t => (new Date(t.startTime) > fromByDay && new Date(t.startTime) < toByDay))
|
|
185
185
|
const routeByDay = deviceRoute.filter(p => (new Date(p.fixTime) > fromByDay && new Date(p.fixTime) < toByDay))
|
|
186
186
|
const distance = tripsByDay.reduce((a, b) => a + b.distance, 0)
|
|
187
187
|
|
package/src/zone-report.js
CHANGED
|
@@ -655,7 +655,7 @@ function exportZoneReportToExcel (userData, reportData) {
|
|
|
655
655
|
{ label: translations.report.date, value: 'date' }
|
|
656
656
|
])
|
|
657
657
|
reportData.devices[0].days[0].geofences.forEach(g =>
|
|
658
|
-
headers.push({ label: g.geofenceName, value: g.geofenceId })
|
|
658
|
+
headers.push({ label: g.geofenceName, value: '' + g.geofenceId })
|
|
659
659
|
)
|
|
660
660
|
headers.push({ label: translations.report.distanceOut || 'Kms Afuera', value: 'distanceOut', format: '0' })
|
|
661
661
|
} else if (userData.tripsBetweenZones) {
|