fleetmap-reports 1.0.577 → 1.0.580
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/fuel.test.js +0 -1
- package/src/kms-report.js +1 -1
- package/src/location-report.js +4 -6
package/package.json
CHANGED
package/src/fuel.test.js
CHANGED
package/src/kms-report.js
CHANGED
|
@@ -303,7 +303,7 @@ async function exportKmsReportToPDF (userData, reportData) {
|
|
|
303
303
|
const data = []
|
|
304
304
|
if (userData.byDriver) {
|
|
305
305
|
reportData.drivers.forEach(d => {
|
|
306
|
-
const group = userData.groups.find(g => g.drivers.includes(d.driver.id))
|
|
306
|
+
const group = userData.groups.find(g => g.drivers && g.drivers.includes(d.driver.id))
|
|
307
307
|
|
|
308
308
|
const temp = [
|
|
309
309
|
d.driver.name,
|
package/src/location-report.js
CHANGED
|
@@ -306,7 +306,7 @@ function getTempValue (row) {
|
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
function getDigitalPort1Label (row, translations, dAttributes) {
|
|
309
|
-
return dAttributes.sensor1 || translations.report.digital_ports1
|
|
309
|
+
return (dAttributes && dAttributes.sensor1) || translations.report.digital_ports1
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
function getDigitalPort2Label (row, translations) {
|
|
@@ -363,17 +363,15 @@ function exportLocationReportToExcel (userData, reportData) {
|
|
|
363
363
|
{ label: translations.report.address, value: 'address' },
|
|
364
364
|
{ label: translations.report.speed, value: 'speed' },
|
|
365
365
|
{ label: translations.report.ignition, value: 'ignition' },
|
|
366
|
-
{ label: translations.report.driver, value: 'driver' }
|
|
367
|
-
{ label: 'Latitude', value: 'latitude' },
|
|
368
|
-
{ label: 'Longitude', value: 'longitude' }
|
|
366
|
+
{ label: translations.report.driver, value: 'driver' }
|
|
369
367
|
]
|
|
370
368
|
|
|
371
369
|
if (userData.includeTemperature) {
|
|
372
370
|
headers.push({ label: translations.report.temperature, value: 'temperature' })
|
|
373
371
|
}
|
|
374
372
|
|
|
375
|
-
headers.push({ label: '
|
|
376
|
-
headers.push({ label: '
|
|
373
|
+
headers.push({ label: 'Latitude', value: 'latitude' })
|
|
374
|
+
headers.push({ label: 'Longitude', value: 'longitude' })
|
|
377
375
|
|
|
378
376
|
let data = []
|
|
379
377
|
if (positionsData) {
|