fleetmap-reports 2.0.83 → 2.0.85
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/trip-report.js +2 -2
package/package.json
CHANGED
package/src/trip-report.js
CHANGED
|
@@ -2,7 +2,7 @@ const automaticReports = require('./automaticReports')
|
|
|
2
2
|
const jsPDF = require('jspdf')
|
|
3
3
|
const {
|
|
4
4
|
convertMS, convertToLocaleString, convertToLocaleDateString, convertToLocaleTimeString, getTranslations,
|
|
5
|
-
isClientSide
|
|
5
|
+
isClientSide, formatNumber
|
|
6
6
|
} = require('./util/utils')
|
|
7
7
|
require('jspdf-autotable')
|
|
8
8
|
const { getUserPartner } = require('fleetmap-partners')
|
|
@@ -595,7 +595,7 @@ function getSumTotalKms (user, data) {
|
|
|
595
595
|
const values = data.map(item => {
|
|
596
596
|
return item.totalKms ? parseFloat(item.totalKms) : 0
|
|
597
597
|
})
|
|
598
|
-
return
|
|
598
|
+
return formatNumber(values.reduce((a, b) => a + b, 0))
|
|
599
599
|
}
|
|
600
600
|
|
|
601
601
|
function getSumAvgSpeed (data) {
|