fleetmap-reports 1.0.461 → 1.0.462
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 +2 -0
- package/src/location-report.js +3 -1
package/package.json
CHANGED
package/src/activity-report.js
CHANGED
|
@@ -196,6 +196,7 @@ function processDevices (from, to, devices, data, userData) {
|
|
|
196
196
|
})
|
|
197
197
|
|
|
198
198
|
if (summaryCurrentDay) {
|
|
199
|
+
summaryCurrentDay.engineHours = tripsByDay.reduce((a, b) => a + b.duration, 0)
|
|
199
200
|
summaryCurrentDay.distance = distance
|
|
200
201
|
summaryCurrentDay.convertedSpentFuel = automaticReports.calculateSpentFuel(summaryCurrentDay.spentFuel, d)
|
|
201
202
|
summaryCurrentDay.startTime = tripsByDay.length && tripsByDay[0].startTime
|
|
@@ -227,6 +228,7 @@ function processDevices (from, to, devices, data, userData) {
|
|
|
227
228
|
|
|
228
229
|
if (summary.length) {
|
|
229
230
|
summary.forEach(s => {
|
|
231
|
+
s.engineHours = deviceTrips.reduce((a, b) => a + b.duration, 0)
|
|
230
232
|
s.distance = deviceTrips.reduce((a, b) => a + b.distance, 0)
|
|
231
233
|
s.convertedSpentFuel = automaticReports.calculateSpentFuel(s.spentFuel, d)
|
|
232
234
|
s.startTime = deviceTrips.length && deviceTrips[0].startTime
|
package/src/location-report.js
CHANGED
|
@@ -326,7 +326,9 @@ function exportLocationReportToExcel (userData, reportData) {
|
|
|
326
326
|
{ label: translations.report.address, value: 'address' },
|
|
327
327
|
{ label: translations.report.speed, value: 'speed' },
|
|
328
328
|
{ label: translations.report.ignition, value: 'ignition' },
|
|
329
|
-
{ label: translations.report.driver, value: 'driver' }
|
|
329
|
+
{ label: translations.report.driver, value: 'driver' },
|
|
330
|
+
{ label: 'Latitude', value: 'latitude' },
|
|
331
|
+
{ label: 'Longitude', value: 'longitude' }
|
|
330
332
|
]
|
|
331
333
|
|
|
332
334
|
if (userData.includeTemperature) {
|