fleetmap-reports 2.0.295 → 2.0.297

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": "2.0.295",
3
+ "version": "2.0.297",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -324,6 +324,9 @@ function deviceName (device) {
324
324
  }
325
325
 
326
326
  function getAlertInfo (drivers, alert, device, translations) {
327
+ if (alert.type === 'alarm' && alert.attributes.alarm === 'temperature') {
328
+ return alert.attributes.info
329
+ }
327
330
  if (alert.type === 'alarm' && alert.attributes.alarm === 'sensor') {
328
331
  return device ? device.attributes.sensor1on : ''
329
332
  }
@@ -528,7 +528,7 @@ function exportTripReportToExcel (userData, reportData) {
528
528
  headers.unshift({ label: translations.report.driver, value: 'name' })
529
529
  headers.push({ label: translations.report.vehicle, value: 'subname' })
530
530
  } else {
531
- headers.unshift({ label: translations.report.model, value: 'model' })
531
+ headers.unshift({ label: translations.settings.vehicle_model, value: 'model' })
532
532
  headers.unshift({ label: translations.report.group, value: 'group' })
533
533
  headers.unshift({ label: translations.report.driver, value: 'subname' })
534
534
  headers.unshift({ label: translations.report.vehicle, value: 'name' })