fleetmap-reports 1.0.218 → 1.0.222
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/kms-report.js +2 -2
package/package.json
CHANGED
package/src/kms-report.js
CHANGED
|
@@ -157,7 +157,7 @@ async function exportKmsReportToPDF(userData, reportData) {
|
|
|
157
157
|
d.days.forEach(day => {
|
|
158
158
|
const temp = [
|
|
159
159
|
new Date(day.date).toLocaleDateString(),
|
|
160
|
-
(
|
|
160
|
+
1 //(day.kms/1000).toFixed(0)
|
|
161
161
|
]
|
|
162
162
|
|
|
163
163
|
data.push(temp)
|
|
@@ -166,7 +166,7 @@ async function exportKmsReportToPDF(userData, reportData) {
|
|
|
166
166
|
const footValues = []
|
|
167
167
|
footValues.push(
|
|
168
168
|
'',
|
|
169
|
-
(d.days.reduce((a, b) => a +
|
|
169
|
+
(d.days.reduce((a, b) => a + b.kms, 0)/1000).toFixed(0)
|
|
170
170
|
)
|
|
171
171
|
|
|
172
172
|
const style = getStyle(getUserPartner(userData.user))
|