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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "2.0.83",
3
+ "version": "2.0.85",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -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 Intl.NumberFormat(user.attributes.lang, { maximumFractionDigits: 1 }).format(values.reduce((a, b) => a + b, 0))
598
+ return formatNumber(values.reduce((a, b) => a + b, 0))
599
599
  }
600
600
 
601
601
  function getSumAvgSpeed (data) {