fleetmap-reports 1.0.212 → 1.0.213

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.
@@ -143,7 +143,7 @@
143
143
  <workItem from="1637227826845" duration="1275000" />
144
144
  <workItem from="1637441942952" duration="4543000" />
145
145
  <workItem from="1637670815688" duration="2973000" />
146
- <workItem from="1637674107929" duration="8163000" />
146
+ <workItem from="1637674107929" duration="9187000" />
147
147
  </task>
148
148
  <task id="LOCAL-00001" summary="Fix getStyle">
149
149
  <created>1636983717385</created>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "1.0.212",
3
+ "version": "1.0.213",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/index.test.js CHANGED
@@ -37,8 +37,8 @@ describe('test reports', function() {
37
37
  })
38
38
 
39
39
 
40
- //const pdf = report.tripReportToPDF(userData, reportData)
40
+ const pdf = report.kmsReportToExcel(userData, reportResult)
41
41
 
42
- //console.log(pdf)
42
+ console.log(pdf)
43
43
  })
44
44
  })
package/src/kms-report.js CHANGED
@@ -244,7 +244,7 @@ function exportKmsReportToExcel(userData, reportData) {
244
244
  data = data.concat([{}])
245
245
  data = data.concat(d.days.map(a => {
246
246
  return {
247
- name: userData.byDriver ? d.driver.name : d.summary.deviceName,
247
+ name: userData.byDriver ? d.driver.name : d.device.name,
248
248
  group: group ? group.name : '',
249
249
  date: a.date,
250
250
  distance: Number((a.kms / 1000).toFixed(0))