fleetmap-reports 1.0.891 → 1.0.893
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/zone-report.js +7 -7
package/package.json
CHANGED
package/src/zone-report.js
CHANGED
|
@@ -132,7 +132,7 @@ async function processDevices (from, to, devices, userData, data) {
|
|
|
132
132
|
geofencesData.push({
|
|
133
133
|
geofenceId: geofence.id,
|
|
134
134
|
geofenceName: geofence.name,
|
|
135
|
-
days: userData.onlyWithKmsOut ? dataByDay.filter(d => d.distanceOut) : dataByDay
|
|
135
|
+
days: userData.onlyWithKmsOut ? dataByDay.filter(d => d.distanceOut >= 0.5) : dataByDay
|
|
136
136
|
})
|
|
137
137
|
}
|
|
138
138
|
|
|
@@ -639,9 +639,9 @@ function exportZoneReportToExcel (userData, reportData) {
|
|
|
639
639
|
{ label: translations.report.date, value: 'date' },
|
|
640
640
|
{ label: translations.report.firstIn, value: 'firstIn' },
|
|
641
641
|
{ label: translations.report.lastOut, value: 'lastOut' },
|
|
642
|
-
{ label: translations.report.distanceIn || 'Kms Adentro', value: 'distanceIn' },
|
|
642
|
+
{ label: translations.report.distanceIn || 'Kms Adentro', value: 'distanceIn', format: '0' },
|
|
643
643
|
{ label: translations.report.timeIn, value: 'totalInTime' },
|
|
644
|
-
{ label: translations.report.distanceOut || 'Kms Afuera', value: 'distanceOut' },
|
|
644
|
+
{ label: translations.report.distanceOut || 'Kms Afuera', value: 'distanceOut', format: '0' },
|
|
645
645
|
{ label: translations.report.timeOut, value: 'totalOutTime' }
|
|
646
646
|
])
|
|
647
647
|
} else if (userData.zonesByColumn) {
|
|
@@ -652,7 +652,7 @@ function exportZoneReportToExcel (userData, reportData) {
|
|
|
652
652
|
reportData.devices[0].days[0].geofences.forEach(g =>
|
|
653
653
|
headers.push({ label: g.geofenceName, value: g.geofenceId })
|
|
654
654
|
)
|
|
655
|
-
headers.push({ label: translations.report.distanceOut || 'Kms Afuera', value: 'distanceOut' })
|
|
655
|
+
headers.push({ label: translations.report.distanceOut || 'Kms Afuera', value: 'distanceOut', format: '0' })
|
|
656
656
|
} else if (userData.tripsBetweenZones) {
|
|
657
657
|
headers.push(...[
|
|
658
658
|
{ label: translations.report.vehicle, value: 'name' },
|
|
@@ -661,7 +661,7 @@ function exportZoneReportToExcel (userData, reportData) {
|
|
|
661
661
|
{ label: translations.report.date_end, value: 'enter' },
|
|
662
662
|
{ label: translations.report.geofenceIn || 'Zone IN', value: 'zoneIn' },
|
|
663
663
|
{ label: translations.report.duration, value: 'totalOutTime' },
|
|
664
|
-
{ label: translations.report.distance, value: 'distanceOut' }
|
|
664
|
+
{ label: translations.report.distance, value: 'distanceOut', format: '0' }
|
|
665
665
|
])
|
|
666
666
|
} else {
|
|
667
667
|
headers.push(...[
|
|
@@ -670,8 +670,8 @@ function exportZoneReportToExcel (userData, reportData) {
|
|
|
670
670
|
{ label: translations.report.exit, value: 'exit' },
|
|
671
671
|
{ label: translations.report.stopped, value: 'stopped' },
|
|
672
672
|
{ label: translations.report.duration, value: 'totalInTime' },
|
|
673
|
-
{ label: translations.report.distanceIn || 'Kms Adentro', value: 'distanceIn' },
|
|
674
|
-
{ label: translations.report.distanceOut || 'Kms Afuera', value: 'distanceOut' },
|
|
673
|
+
{ label: translations.report.distanceIn || 'Kms Adentro', value: 'distanceIn', format: '0' },
|
|
674
|
+
{ label: translations.report.distanceOut || 'Kms Afuera', value: 'distanceOut', format: '0' },
|
|
675
675
|
{ label: translations.report.geofence, value: 'zone' },
|
|
676
676
|
{ label: translations.report.driver, value: 'driver' }
|
|
677
677
|
])
|