fleetmap-reports 1.0.459 → 1.0.461

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.459",
3
+ "version": "1.0.461",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -188,6 +188,8 @@ async function exportLocationReportToPDF (userData, reportData) {
188
188
  headers.push(getDigitalPort1Label(userData.byDriver ? positionsData[0].driver : positionsData[0].device, translations))
189
189
  headers.push(getDigitalPort2Label(userData.byDriver ? positionsData[0].driver : positionsData[0].device, translations))
190
190
  }
191
+ headers.push('Latitude')
192
+ headers.push('Longitude')
191
193
 
192
194
  let first = true
193
195
  // eslint-disable-next-line new-cap
@@ -228,7 +230,8 @@ async function exportLocationReportToPDF (userData, reportData) {
228
230
  temp.push(getDigitalPortValue(a, 1, translations))
229
231
  temp.push(getDigitalPortValue(a, 2, translations))
230
232
  }
231
-
233
+ temp.push(a.latitude)
234
+ temp.push(a.longitude)
232
235
  data.push(temp)
233
236
  })
234
237