fleetmap-reports 1.0.300 → 1.0.301
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/kms-report.js +1 -1
- package/src/trip-report.js +1 -1
package/package.json
CHANGED
package/src/kms-report.js
CHANGED
|
@@ -118,7 +118,7 @@ function processDrivers(from, to, drivers, data) {
|
|
|
118
118
|
console.log(data)
|
|
119
119
|
const driversResult = []
|
|
120
120
|
drivers.forEach(d => {
|
|
121
|
-
const route = data.route.filter(
|
|
121
|
+
const route = data.route.filter(p => p.attributes.driverUniqueId === d.uniqueId)
|
|
122
122
|
const trips = data.trips.filter(t => t.driverUniqueId === d.uniqueId
|
|
123
123
|
&& (userData.allWeek || !userData.weekDays || isInsideTimetable(t, userData) || isPartialInsideTimetable(t, userData, route)))
|
|
124
124
|
|
package/src/trip-report.js
CHANGED
|
@@ -179,7 +179,7 @@ function processDrivers(from, to, drivers, data) {
|
|
|
179
179
|
console.log(data)
|
|
180
180
|
const driversResult = []
|
|
181
181
|
drivers.forEach(d => {
|
|
182
|
-
const route = data.route.filter(
|
|
182
|
+
const route = data.route.filter(p => p.attributes.driverUniqueId === d.uniqueId)
|
|
183
183
|
const trips = data.trips.filter(t => t.driverUniqueId === d.uniqueId
|
|
184
184
|
&& (userData.allWeek || !userData.weekDays || isInsideTimetable(t, userData) || isPartialInsideTimetable(t, userData, route)))
|
|
185
185
|
|