fleetmap-reports 1.0.591 → 1.0.592
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/lang/frFR.js +12 -22
- package/package.json +1 -1
- package/src/speeding-report.js +5 -2
- package/src/util/utils.js +5 -0
package/lang/frFR.js
CHANGED
|
@@ -4,12 +4,6 @@ module.exports = {
|
|
|
4
4
|
dashboard: 'Dashboard',
|
|
5
5
|
reports: 'Reports',
|
|
6
6
|
report: 'Report',
|
|
7
|
-
report_trip_title: 'Rapport de voyage',
|
|
8
|
-
report_location_title: 'Location Report',
|
|
9
|
-
report_zone_crossing: 'Zone Report',
|
|
10
|
-
report_speeding: 'Relatório de Excessos de Velocidade',
|
|
11
|
-
report_speeding_beta: 'Relatório de Excessos de Velocidade BETA',
|
|
12
|
-
report_tolls: 'Relatório de Portagens',
|
|
13
7
|
settings: 'Settings',
|
|
14
8
|
duration: 'Duration'
|
|
15
9
|
},
|
|
@@ -167,22 +161,18 @@ module.exports = {
|
|
|
167
161
|
select_geofences_placeholder: 'Geofences',
|
|
168
162
|
select_period: 'Select period',
|
|
169
163
|
period: 'Period',
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
titleActivityReport: 'Activity Report',
|
|
183
|
-
titleKmsReport: 'Kms Report',
|
|
184
|
-
titleIdleReport: 'Idle Report',
|
|
185
|
-
titleMachinesReport: 'Machines Report',
|
|
164
|
+
titleTripReport: 'Reporte de viaje',
|
|
165
|
+
titleLocationReport: 'Rapport de localisation',
|
|
166
|
+
titleSpeedingReport: 'Rapport de survitesse',
|
|
167
|
+
titleZoneReport: 'Rapport de zones',
|
|
168
|
+
titleRefuelReport: 'Rapport de ravitaillement',
|
|
169
|
+
titleFuelConsumptionReport: 'Rapport de consommation de carburant',
|
|
170
|
+
titleFuelDropReport: 'Rapport de chute de carburant',
|
|
171
|
+
titleEventsReport: 'Rapport d\'événements',
|
|
172
|
+
titleActivityReport: 'Rapport d\'activité',
|
|
173
|
+
titleKmsReport: 'Rapport de km',
|
|
174
|
+
titleIdleReport: 'Rapport ralenti',
|
|
175
|
+
titleMachinesReport: 'Rapport sur les machines',
|
|
186
176
|
headerStartAddress: 'Adresse de départ',
|
|
187
177
|
headerDistance: 'Distance',
|
|
188
178
|
headerDrivingTime: 'Driving Time',
|
package/package.json
CHANGED
package/src/speeding-report.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
const jsPDF = require('jspdf')
|
|
2
|
-
const {
|
|
2
|
+
const {
|
|
3
|
+
convertMS, convertToLocaleString, convertToFeature, convertPositionToFeature, getTranslations, getLanguage,
|
|
4
|
+
checkGeocoding
|
|
5
|
+
} = require('./util/utils')
|
|
3
6
|
const { headerFromUser, AmiriRegular } = require('./util/pdfDocument')
|
|
4
7
|
require('jspdf-autotable')
|
|
5
8
|
const { getStyle } = require('./reportStyle')
|
|
@@ -97,7 +100,7 @@ async function createSpeedingReportByDevice (from, to, userData, traccarInstance
|
|
|
97
100
|
}
|
|
98
101
|
}))
|
|
99
102
|
}
|
|
100
|
-
|
|
103
|
+
checkGeocoding(allData)
|
|
101
104
|
return allData
|
|
102
105
|
}
|
|
103
106
|
|
package/src/util/utils.js
CHANGED