fleetmap-reports 1.0.559 → 1.0.560
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/location-report.js +2 -3
package/package.json
CHANGED
package/src/location-report.js
CHANGED
|
@@ -314,7 +314,6 @@ function getDigitalPort2Label (row, translations) {
|
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
function getDigitalPortValue (row, index, translations, dAttributes) {
|
|
317
|
-
console.log('getDigitalPortValue', row, index, dAttributes)
|
|
318
317
|
switch (index) {
|
|
319
318
|
case 1:
|
|
320
319
|
if (row.attributes && row.attributes.door1 !== undefined) {
|
|
@@ -394,8 +393,8 @@ function exportLocationReportToExcel (userData, reportData) {
|
|
|
394
393
|
ignition: a.attributes.ignition ? translations.report.ignitionOn : translations.report.ignitionOff,
|
|
395
394
|
driver: userData.byDriver ? d.driver.name : getDriverName(a, userData.drivers),
|
|
396
395
|
temperature: getTempValue(a),
|
|
397
|
-
digitalport1: getDigitalPortValue(a, 1, translations),
|
|
398
|
-
digitalport2: getDigitalPortValue(a, 2, translations),
|
|
396
|
+
digitalport1: getDigitalPortValue(a, 1, translations, d.device.attributes),
|
|
397
|
+
digitalport2: getDigitalPortValue(a, 2, translations, d.device.attributes),
|
|
399
398
|
latitude: a.latitude,
|
|
400
399
|
longitude: a.longitude
|
|
401
400
|
}
|