fleetmap-reports 1.0.597 → 1.0.598
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/tests/index.test.js +1 -0
- package/src/trip-report.js +2 -2
package/package.json
CHANGED
package/src/tests/index.test.js
CHANGED
package/src/trip-report.js
CHANGED
|
@@ -172,8 +172,8 @@ function processDevices (from, to, devices, data, userData, traccar) {
|
|
|
172
172
|
const stop = getStop(new Date(trip.startTime), stops)
|
|
173
173
|
|
|
174
174
|
if (stop && !trip.endTimeIsOut) {
|
|
175
|
-
trip.stopDuration = (new Date(stop.endTime) - new Date(stop.startTime))
|
|
176
|
-
trip.stopEngineHours = trip.idleTime + stop.
|
|
175
|
+
trip.stopDuration = ((new Date(stop.endTime) - new Date(stop.startTime)) - stop.engineHours)
|
|
176
|
+
trip.stopEngineHours = trip.idleTime + stop.engineHours
|
|
177
177
|
} else {
|
|
178
178
|
trip.stopDuration = 0
|
|
179
179
|
trip.stopEngineHours = 0
|