fleetmap-reports 1.0.562 → 1.0.564

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "1.0.562",
3
+ "version": "1.0.564",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -242,7 +242,7 @@ function exportSpeedingReportToExcel (userData, reportData) {
242
242
  eventType: a.type === 'alarm' ? translations.report['event_' + a.attributes.alarm] : translations.report['event_' + a.type],
243
243
  fixTime: getAlertDate(userData.user, a),
244
244
  address: a.geofenceName || (a.position ? a.position.address : ''),
245
- info: getAlertInfo(userData.drivers, a),
245
+ info: getAlertInfo(userData.drivers, a, d.device, translations),
246
246
  driver: a.driver,
247
247
  latitude: a.position && a.position.latitude,
248
248
  longitude: a.position && a.position.longitude
@@ -313,7 +313,7 @@ function getDigitalPort2Label (row, translations) {
313
313
  return row.attributes.door2 || translations.report.digital_ports2
314
314
  }
315
315
 
316
- export function getDigitalPortValue (row, index, translations, dAttributes) {
316
+ function getDigitalPortValue (row, index, translations, dAttributes) {
317
317
  switch (index) {
318
318
  case 1:
319
319
  if (row.attributes && row.attributes.door1 !== undefined) {
@@ -450,3 +450,4 @@ function getMaxSpeed (data) {
450
450
  exports.createLocationReport = createLocationReport
451
451
  exports.exportLocationReportToPDF = exportLocationReportToPDF
452
452
  exports.exportLocationReportToExcel = exportLocationReportToExcel
453
+ exports.getDigitalPortValue = getDigitalPortValue