fleetmap-reports 1.0.272 → 1.0.276

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.
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="RunConfigurationProducerService">
4
+ <option name="ignoredProducers">
5
+ <set>
6
+ <option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
7
+ </set>
8
+ </option>
9
+ </component>
10
+ </project>
@@ -0,0 +1,498 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="eb665c86-c893-4333-bd2a-721dc27980b9" name="Changes" comment="Add idle report">
5
+ <change beforePath="$PROJECT_DIR$/src/index.test.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/index.test.js" afterDir="false" />
6
+ <change beforePath="$PROJECT_DIR$/src/speeding-report.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/speeding-report.js" afterDir="false" />
7
+ </list>
8
+ <option name="SHOW_DIALOG" value="false" />
9
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
+ <option name="LAST_RESOLUTION" value="IGNORE" />
12
+ </component>
13
+ <component name="FileTemplateManagerImpl">
14
+ <option name="RECENT_TEMPLATES">
15
+ <list>
16
+ <option value="JavaScript File" />
17
+ </list>
18
+ </option>
19
+ </component>
20
+ <component name="Git.Settings">
21
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
22
+ </component>
23
+ <component name="GitSEFilterConfiguration">
24
+ <file-type-list>
25
+ <filtered-out-file-type name="LOCAL_BRANCH" />
26
+ <filtered-out-file-type name="REMOTE_BRANCH" />
27
+ <filtered-out-file-type name="TAG" />
28
+ <filtered-out-file-type name="COMMIT_BY_MESSAGE" />
29
+ </file-type-list>
30
+ </component>
31
+ <component name="ProjectId" id="20NIxbej0qfi8RaO3jr1XOU0xol" />
32
+ <component name="ProjectViewState">
33
+ <option name="hideEmptyMiddlePackages" value="true" />
34
+ <option name="showLibraryContents" value="true" />
35
+ </component>
36
+ <component name="PropertiesComponent">
37
+ <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
38
+ <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
39
+ <property name="WebServerToolWindowFactoryState" value="false" />
40
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
41
+ <property name="nodejs.mocha.mocha_node_package_dir" value="$PROJECT_DIR$/node_modules/mocha" />
42
+ <property name="nodejs_package_manager_path" value="npm" />
43
+ <property name="ts.external.directory.path" value="$APPLICATION_HOME_DIR$/plugins/JavaScriptLanguage/jsLanguageServicesImpl/external" />
44
+ <property name="vue.rearranger.settings.migration" value="true" />
45
+ </component>
46
+ <component name="RunManager" selected="Mocha.Reports.test event report">
47
+ <configuration name="Reports.test event report" type="mocha-javascript-test-runner" temporary="true" nameIsGenerated="true">
48
+ <node-interpreter>project</node-interpreter>
49
+ <node-options />
50
+ <mocha-package>$PROJECT_DIR$/node_modules/mocha</mocha-package>
51
+ <working-directory>$PROJECT_DIR$</working-directory>
52
+ <pass-parent-env>true</pass-parent-env>
53
+ <envs>
54
+ <env name="email" value="jppenas@gmail.com" />
55
+ <env name="password" value="penas46881" />
56
+ </envs>
57
+ <ui>bdd</ui>
58
+ <extra-mocha-options />
59
+ <test-kind>TEST</test-kind>
60
+ <test-file>$PROJECT_DIR$/src/index.test.js</test-file>
61
+ <test-names>
62
+ <name value="Reports" />
63
+ <name value="test event report" />
64
+ </test-names>
65
+ <method v="2" />
66
+ </configuration>
67
+ <configuration name="Reports.test trip report" type="mocha-javascript-test-runner" temporary="true" nameIsGenerated="true">
68
+ <node-interpreter>project</node-interpreter>
69
+ <node-options />
70
+ <mocha-package>$PROJECT_DIR$/node_modules/mocha</mocha-package>
71
+ <working-directory>$PROJECT_DIR$</working-directory>
72
+ <pass-parent-env>true</pass-parent-env>
73
+ <envs>
74
+ <env name="email" value="jppenas@gmail.com" />
75
+ <env name="password" value="penas46881" />
76
+ </envs>
77
+ <ui>bdd</ui>
78
+ <extra-mocha-options />
79
+ <test-kind>TEST</test-kind>
80
+ <test-file>$PROJECT_DIR$/src/index.test.js</test-file>
81
+ <test-names>
82
+ <name value="Reports" />
83
+ <name value="test trip report" />
84
+ </test-names>
85
+ <method v="2" />
86
+ </configuration>
87
+ <configuration name="speedingReport.test kmsReport by day" type="mocha-javascript-test-runner" temporary="true" nameIsGenerated="true">
88
+ <node-interpreter>project</node-interpreter>
89
+ <node-options />
90
+ <mocha-package>$PROJECT_DIR$/node_modules/mocha</mocha-package>
91
+ <working-directory>$PROJECT_DIR$</working-directory>
92
+ <pass-parent-env>true</pass-parent-env>
93
+ <envs>
94
+ <env name="email" value="jppenas@gmail.com" />
95
+ <env name="password" value="penas46881" />
96
+ </envs>
97
+ <ui>bdd</ui>
98
+ <extra-mocha-options />
99
+ <test-kind>TEST</test-kind>
100
+ <test-file>$PROJECT_DIR$/src/index.test.js</test-file>
101
+ <test-names>
102
+ <name value="speedingReport" />
103
+ <name value="test kmsReport by day" />
104
+ </test-names>
105
+ <method v="2" />
106
+ </configuration>
107
+ <configuration name="speedingReport.test speeding" type="mocha-javascript-test-runner" temporary="true" nameIsGenerated="true">
108
+ <node-interpreter>project</node-interpreter>
109
+ <node-options />
110
+ <mocha-package>$PROJECT_DIR$/node_modules/mocha</mocha-package>
111
+ <working-directory>$PROJECT_DIR$</working-directory>
112
+ <pass-parent-env>true</pass-parent-env>
113
+ <envs>
114
+ <env name="email" value="jppenas@gmail.com" />
115
+ <env name="password" value="penas46881" />
116
+ </envs>
117
+ <ui>bdd</ui>
118
+ <extra-mocha-options />
119
+ <test-kind>TEST</test-kind>
120
+ <test-file>$PROJECT_DIR$/src/index.test.js</test-file>
121
+ <test-names>
122
+ <name value="speedingReport" />
123
+ <name value="test speeding" />
124
+ </test-names>
125
+ <method v="2" />
126
+ </configuration>
127
+ <configuration name="test reports" type="mocha-javascript-test-runner" temporary="true" nameIsGenerated="true">
128
+ <node-interpreter>project</node-interpreter>
129
+ <node-options />
130
+ <mocha-package>$PROJECT_DIR$/node_modules/mocha</mocha-package>
131
+ <working-directory>$PROJECT_DIR$</working-directory>
132
+ <pass-parent-env>true</pass-parent-env>
133
+ <envs>
134
+ <env name="email" value="jppenas@gmail.com" />
135
+ <env name="password" value="penas46881" />
136
+ </envs>
137
+ <ui>bdd</ui>
138
+ <extra-mocha-options />
139
+ <test-kind>SUITE</test-kind>
140
+ <test-file>$PROJECT_DIR$/src/index.test.js</test-file>
141
+ <test-names>
142
+ <name value="test reports" />
143
+ </test-names>
144
+ <method v="2" />
145
+ </configuration>
146
+ <list>
147
+ <item itemvalue="Mocha.test reports" />
148
+ <item itemvalue="Mocha.speedingReport.test kmsReport by day" />
149
+ <item itemvalue="Mocha.speedingReport.test speeding" />
150
+ <item itemvalue="Mocha.Reports.test trip report" />
151
+ <item itemvalue="Mocha.Reports.test event report" />
152
+ </list>
153
+ <recent_temporary>
154
+ <list>
155
+ <item itemvalue="Mocha.Reports.test event report" />
156
+ <item itemvalue="Mocha.Reports.test trip report" />
157
+ <item itemvalue="Mocha.speedingReport.test speeding" />
158
+ <item itemvalue="Mocha.speedingReport.test kmsReport by day" />
159
+ <item itemvalue="Mocha.test reports" />
160
+ </list>
161
+ </recent_temporary>
162
+ </component>
163
+ <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
164
+ <component name="TaskManager">
165
+ <task active="true" id="Default" summary="Default task">
166
+ <changelist id="eb665c86-c893-4333-bd2a-721dc27980b9" name="Changes" comment="" />
167
+ <created>1635878866368</created>
168
+ <option name="number" value="Default" />
169
+ <option name="presentableId" value="Default" />
170
+ <updated>1635878866368</updated>
171
+ <workItem from="1635878870054" duration="105000" />
172
+ <workItem from="1635943211865" duration="371000" />
173
+ <workItem from="1636030918716" duration="808000" />
174
+ <workItem from="1636366400735" duration="3018000" />
175
+ <workItem from="1636371409243" duration="45000" />
176
+ <workItem from="1636371621773" duration="4750000" />
177
+ <workItem from="1636623371114" duration="675000" />
178
+ <workItem from="1636624396937" duration="1987000" />
179
+ <workItem from="1636627666406" duration="1616000" />
180
+ <workItem from="1636647112207" duration="1748000" />
181
+ <workItem from="1636981640447" duration="4315000" />
182
+ <workItem from="1637009407292" duration="1470000" />
183
+ <workItem from="1637012863006" duration="5376000" />
184
+ <workItem from="1637087797229" duration="5701000" />
185
+ <workItem from="1637227826845" duration="1275000" />
186
+ <workItem from="1637441942952" duration="4543000" />
187
+ <workItem from="1637670815688" duration="2973000" />
188
+ <workItem from="1637674107929" duration="13419000" />
189
+ <workItem from="1637756665591" duration="4742000" />
190
+ <workItem from="1637841765985" duration="10197000" />
191
+ <workItem from="1637868513425" duration="1650000" />
192
+ <workItem from="1637928687573" duration="37000" />
193
+ <workItem from="1637931438656" duration="621000" />
194
+ <workItem from="1637952151523" duration="17766000" />
195
+ <workItem from="1638270786569" duration="6960000" />
196
+ <workItem from="1638455902437" duration="120000" />
197
+ <workItem from="1638486745343" duration="4126000" />
198
+ <workItem from="1638792860278" duration="2140000" />
199
+ <workItem from="1638839462028" duration="50000" />
200
+ <workItem from="1638840110567" duration="597000" />
201
+ <workItem from="1638888787940" duration="19894000" />
202
+ <workItem from="1639074912454" duration="257000" />
203
+ <workItem from="1639090037682" duration="2514000" />
204
+ <workItem from="1639135460686" duration="3092000" />
205
+ <workItem from="1639151097761" duration="13703000" />
206
+ <workItem from="1639246310204" duration="628000" />
207
+ <workItem from="1639247624979" duration="13040000" />
208
+ <workItem from="1639489940902" duration="18224000" />
209
+ <workItem from="1639591829775" duration="681000" />
210
+ <workItem from="1639592539998" duration="27141000" />
211
+ <workItem from="1639766010908" duration="4991000" />
212
+ <workItem from="1639872937953" duration="1438000" />
213
+ <workItem from="1639954341221" duration="11986000" />
214
+ <workItem from="1640272520380" duration="2253000" />
215
+ <workItem from="1640789226071" duration="1935000" />
216
+ <workItem from="1640794844118" duration="10128000" />
217
+ <workItem from="1640866364417" duration="67000" />
218
+ <workItem from="1640866782794" duration="123000" />
219
+ <workItem from="1640866964393" duration="1022000" />
220
+ <workItem from="1640870147277" duration="8236000" />
221
+ <workItem from="1641321068227" duration="14805000" />
222
+ <workItem from="1641387675790" duration="32947000" />
223
+ <workItem from="1641509412324" duration="41000" />
224
+ <workItem from="1641510744190" duration="1404000" />
225
+ <workItem from="1641526151665" duration="1679000" />
226
+ <workItem from="1641640203903" duration="5320000" />
227
+ <workItem from="1641740608739" duration="1844000" />
228
+ <workItem from="1641775506363" duration="646000" />
229
+ <workItem from="1641819557952" duration="1678000" />
230
+ <workItem from="1641910746496" duration="1819000" />
231
+ <workItem from="1641921254910" duration="614000" />
232
+ <workItem from="1641991863387" duration="626000" />
233
+ <workItem from="1641992769870" duration="96000" />
234
+ <workItem from="1641992912450" duration="1734000" />
235
+ <workItem from="1642001918030" duration="2950000" />
236
+ <workItem from="1642028703547" duration="8996000" />
237
+ </task>
238
+ <task id="LOCAL-00001" summary="Fix getStyle">
239
+ <created>1636983717385</created>
240
+ <option name="number" value="00001" />
241
+ <option name="presentableId" value="LOCAL-00001" />
242
+ <option name="project" value="LOCAL" />
243
+ <updated>1636983717385</updated>
244
+ </task>
245
+ <task id="LOCAL-00002" summary="Fix getStyle in all reports">
246
+ <created>1637020728356</created>
247
+ <option name="number" value="00002" />
248
+ <option name="presentableId" value="LOCAL-00002" />
249
+ <option name="project" value="LOCAL" />
250
+ <updated>1637020728356</updated>
251
+ </task>
252
+ <task id="LOCAL-00003" summary="try catch on pdf addImage">
253
+ <created>1637247013210</created>
254
+ <option name="number" value="00003" />
255
+ <option name="presentableId" value="LOCAL-00003" />
256
+ <option name="project" value="LOCAL" />
257
+ <updated>1637247013211</updated>
258
+ </task>
259
+ <task id="LOCAL-00004" summary="Kms report grouped by day">
260
+ <created>1637715473148</created>
261
+ <option name="number" value="00004" />
262
+ <option name="presentableId" value="LOCAL-00004" />
263
+ <option name="project" value="LOCAL" />
264
+ <updated>1637715473149</updated>
265
+ </task>
266
+ <task id="LOCAL-00005" summary="Fix pdf logo">
267
+ <created>1637849206762</created>
268
+ <option name="number" value="00005" />
269
+ <option name="presentableId" value="LOCAL-00005" />
270
+ <option name="project" value="LOCAL" />
271
+ <updated>1637849206762</updated>
272
+ </task>
273
+ <task id="LOCAL-00006" summary="kms report with parallel requests">
274
+ <created>1637858604089</created>
275
+ <option name="number" value="00006" />
276
+ <option name="presentableId" value="LOCAL-00006" />
277
+ <option name="project" value="LOCAL" />
278
+ <updated>1637858604089</updated>
279
+ </task>
280
+ <task id="LOCAL-00007" summary="Kms Report - Calculate distance with traccar trips">
281
+ <created>1638179219255</created>
282
+ <option name="number" value="00007" />
283
+ <option name="presentableId" value="LOCAL-00007" />
284
+ <option name="project" value="LOCAL" />
285
+ <updated>1638179219256</updated>
286
+ </task>
287
+ <task id="LOCAL-00008" summary="fix speeding report">
288
+ <created>1638186780966</created>
289
+ <option name="number" value="00008" />
290
+ <option name="presentableId" value="LOCAL-00008" />
291
+ <option name="project" value="LOCAL" />
292
+ <updated>1638186780967</updated>
293
+ </task>
294
+ <task id="LOCAL-00009" summary="refactor speeding and trip report">
295
+ <created>1638288337133</created>
296
+ <option name="number" value="00009" />
297
+ <option name="presentableId" value="LOCAL-00009" />
298
+ <option name="project" value="LOCAL" />
299
+ <updated>1638288337135</updated>
300
+ </task>
301
+ <task id="LOCAL-00010" summary="Kms report with time period">
302
+ <created>1639057192380</created>
303
+ <option name="number" value="00010" />
304
+ <option name="presentableId" value="LOCAL-00010" />
305
+ <option name="project" value="LOCAL" />
306
+ <updated>1639057192382</updated>
307
+ </task>
308
+ <task id="LOCAL-00011" summary="kms report - show every selected day">
309
+ <created>1639139696407</created>
310
+ <option name="number" value="00011" />
311
+ <option name="presentableId" value="LOCAL-00011" />
312
+ <option name="project" value="LOCAL" />
313
+ <updated>1639139696408</updated>
314
+ </task>
315
+ <task id="LOCAL-00012" summary="speeding report with customSpeed">
316
+ <created>1639238286381</created>
317
+ <option name="number" value="00012" />
318
+ <option name="presentableId" value="LOCAL-00012" />
319
+ <option name="project" value="LOCAL" />
320
+ <updated>1639238286382</updated>
321
+ </task>
322
+ <task id="LOCAL-00013" summary="fix speeding report">
323
+ <created>1639248407781</created>
324
+ <option name="number" value="00013" />
325
+ <option name="presentableId" value="LOCAL-00013" />
326
+ <option name="project" value="LOCAL" />
327
+ <updated>1639248407782</updated>
328
+ </task>
329
+ <task id="LOCAL-00014" summary="Trip and activity report with time period">
330
+ <created>1639873766070</created>
331
+ <option name="number" value="00014" />
332
+ <option name="presentableId" value="LOCAL-00014" />
333
+ <option name="project" value="LOCAL" />
334
+ <updated>1639873766072</updated>
335
+ </task>
336
+ <task id="LOCAL-00015" summary="Fix trips distance because imported positions generate trips with 0 kms">
337
+ <created>1640000462824</created>
338
+ <option name="number" value="00015" />
339
+ <option name="presentableId" value="LOCAL-00015" />
340
+ <option name="project" value="LOCAL" />
341
+ <updated>1640000462825</updated>
342
+ </task>
343
+ <task id="LOCAL-00016" summary="Fix reports by driver">
344
+ <created>1640274171902</created>
345
+ <option name="number" value="00016" />
346
+ <option name="presentableId" value="LOCAL-00016" />
347
+ <option name="project" value="LOCAL" />
348
+ <updated>1640274171902</updated>
349
+ </task>
350
+ <task id="LOCAL-00017" summary="location report - check if it's running on client side">
351
+ <created>1640795243287</created>
352
+ <option name="number" value="00017" />
353
+ <option name="presentableId" value="LOCAL-00017" />
354
+ <option name="project" value="LOCAL" />
355
+ <updated>1640795243288</updated>
356
+ </task>
357
+ <task id="LOCAL-00018" summary="timezone - check if it's running on client side">
358
+ <created>1640825795052</created>
359
+ <option name="number" value="00018" />
360
+ <option name="presentableId" value="LOCAL-00018" />
361
+ <option name="project" value="LOCAL" />
362
+ <updated>1640825795053</updated>
363
+ </task>
364
+ <task id="LOCAL-00019" summary="calculate avg speed">
365
+ <created>1640867522437</created>
366
+ <option name="number" value="00019" />
367
+ <option name="presentableId" value="LOCAL-00019" />
368
+ <option name="project" value="LOCAL" />
369
+ <updated>1640867522438</updated>
370
+ </task>
371
+ <task id="LOCAL-00020" summary="fix activity report by driver">
372
+ <created>1640872780966</created>
373
+ <option name="number" value="00020" />
374
+ <option name="presentableId" value="LOCAL-00020" />
375
+ <option name="project" value="LOCAL" />
376
+ <updated>1640872780968</updated>
377
+ </task>
378
+ <task id="LOCAL-00021" summary="activity report by driver grouped by day">
379
+ <created>1640878664617</created>
380
+ <option name="number" value="00021" />
381
+ <option name="presentableId" value="LOCAL-00021" />
382
+ <option name="project" value="LOCAL" />
383
+ <updated>1640878664617</updated>
384
+ </task>
385
+ <task id="LOCAL-00022" summary="fix kms-report by driver and fix activity report with time period">
386
+ <created>1641348028566</created>
387
+ <option name="number" value="00022" />
388
+ <option name="presentableId" value="LOCAL-00022" />
389
+ <option name="project" value="LOCAL" />
390
+ <updated>1641348028566</updated>
391
+ </task>
392
+ <task id="LOCAL-00023" summary="Refactor trip and speeding reports">
393
+ <created>1641511586537</created>
394
+ <option name="number" value="00023" />
395
+ <option name="presentableId" value="LOCAL-00023" />
396
+ <option name="project" value="LOCAL" />
397
+ <updated>1641511586537</updated>
398
+ </task>
399
+ <task id="LOCAL-00024" summary="check if weekDays parameter is set">
400
+ <created>1641527800168</created>
401
+ <option name="number" value="00024" />
402
+ <option name="presentableId" value="LOCAL-00024" />
403
+ <option name="project" value="LOCAL" />
404
+ <updated>1641527800170</updated>
405
+ </task>
406
+ <task id="LOCAL-00025" summary="fix trip report">
407
+ <created>1641664506677</created>
408
+ <option name="number" value="00025" />
409
+ <option name="presentableId" value="LOCAL-00025" />
410
+ <option name="project" value="LOCAL" />
411
+ <updated>1641664506679</updated>
412
+ </task>
413
+ <task id="LOCAL-00026" summary="fix kms report by group">
414
+ <created>1641820626240</created>
415
+ <option name="number" value="00026" />
416
+ <option name="presentableId" value="LOCAL-00026" />
417
+ <option name="project" value="LOCAL" />
418
+ <updated>1641820626240</updated>
419
+ </task>
420
+ <task id="LOCAL-00027" summary="fix convert date to localeString">
421
+ <created>1641912050985</created>
422
+ <option name="number" value="00027" />
423
+ <option name="presentableId" value="LOCAL-00027" />
424
+ <option name="project" value="LOCAL" />
425
+ <updated>1641912050985</updated>
426
+ </task>
427
+ <task id="LOCAL-00028" summary="Fix activity and kms report by driver inside a time period">
428
+ <created>1641994017219</created>
429
+ <option name="number" value="00028" />
430
+ <option name="presentableId" value="LOCAL-00028" />
431
+ <option name="project" value="LOCAL" />
432
+ <updated>1641994017220</updated>
433
+ </task>
434
+ <task id="LOCAL-00029" summary="Add idle report">
435
+ <created>1642039915131</created>
436
+ <option name="number" value="00029" />
437
+ <option name="presentableId" value="LOCAL-00029" />
438
+ <option name="project" value="LOCAL" />
439
+ <updated>1642039915132</updated>
440
+ </task>
441
+ <option name="localTasksCounter" value="30" />
442
+ <servers />
443
+ </component>
444
+ <component name="TypeScriptGeneratedFilesManager">
445
+ <option name="version" value="3" />
446
+ </component>
447
+ <component name="Vcs.Log.History.Properties">
448
+ <option name="COLUMN_ID_ORDER">
449
+ <list>
450
+ <option value="Default.Root" />
451
+ <option value="Default.Author" />
452
+ <option value="Default.Date" />
453
+ <option value="Default.Subject" />
454
+ <option value="Space.CommitStatus" />
455
+ </list>
456
+ </option>
457
+ </component>
458
+ <component name="Vcs.Log.Tabs.Properties">
459
+ <option name="TAB_STATES">
460
+ <map>
461
+ <entry key="MAIN">
462
+ <value>
463
+ <State />
464
+ </value>
465
+ </entry>
466
+ </map>
467
+ </option>
468
+ <option name="oldMeFiltersMigrated" value="true" />
469
+ </component>
470
+ <component name="VcsManagerConfiguration">
471
+ <MESSAGE value="Kms report grouped by day" />
472
+ <MESSAGE value="Fix pdf logo" />
473
+ <MESSAGE value="kms report with parallel requests" />
474
+ <MESSAGE value="Kms Report - Calculate distance with traccar trips" />
475
+ <MESSAGE value="refactor speeding and trip report" />
476
+ <MESSAGE value="Kms report with time period" />
477
+ <MESSAGE value="kms report - show every selected day" />
478
+ <MESSAGE value="speeding report with customSpeed" />
479
+ <MESSAGE value="fix speeding report" />
480
+ <MESSAGE value="Trip and activity report with time period" />
481
+ <MESSAGE value="Fix trips distance because imported positions generate trips with 0 kms" />
482
+ <MESSAGE value="Fix reports by driver" />
483
+ <MESSAGE value="location report - check if it's running on client side" />
484
+ <MESSAGE value="timezone - check if it's running on client side" />
485
+ <MESSAGE value="calculate avg speed" />
486
+ <MESSAGE value="fix activity report by driver" />
487
+ <MESSAGE value="activity report by driver grouped by day" />
488
+ <MESSAGE value="fix kms-report by driver and fix activity report with time period" />
489
+ <MESSAGE value="Refactor trip and speeding reports" />
490
+ <MESSAGE value="check if weekDays parameter is set" />
491
+ <MESSAGE value="fix trip report" />
492
+ <MESSAGE value="fix kms report by group" />
493
+ <MESSAGE value="fix convert date to localeString" />
494
+ <MESSAGE value="Fix activity and kms report by driver inside a time period" />
495
+ <MESSAGE value="Add idle report" />
496
+ <option name="LAST_COMMIT_MESSAGE" value="Add idle report" />
497
+ </component>
498
+ </project>
package/lang/enGB.js CHANGED
@@ -182,6 +182,7 @@ module.exports = {
182
182
  titleEventsReport: 'Events Report',
183
183
  titleActivityReport: 'Activity Report',
184
184
  titleKmsReport: 'Kms Report',
185
+ titleIdleReport: 'Idle Report',
185
186
  from: 'From',
186
187
  to: 'to',
187
188
  headerStartAddress: 'Start address',
package/lang/esCL.js CHANGED
@@ -176,6 +176,7 @@ module.exports = {
176
176
  titleEventsReport: 'Informe de Eventos',
177
177
  titleActivityReport: 'Activity Report',
178
178
  titleKmsReport: 'Informe de Kms',
179
+ titleIdleReport: 'Relatórios de Ralenti',
179
180
  from: 'De',
180
181
  to: 'a',
181
182
  headerStartAddress: 'Lugar de início',
package/lang/ptBR.js CHANGED
@@ -172,6 +172,7 @@ module.exports = {
172
172
  titleEventsReport: 'Relatório de Eventos',
173
173
  titleActivityReport: 'Relatório de Actividade',
174
174
  titleKmsReport: 'Relatórios de Kms',
175
+ titleIdleReport: 'Relatórios de Ralenti',
175
176
  from: 'De',
176
177
  to: 'a',
177
178
  headerStartAddress: 'Local de início',
package/lang/ptPT.js CHANGED
@@ -178,6 +178,7 @@ module.exports = {
178
178
  titleEventsReport: 'Relatório de Eventos',
179
179
  titleActivityReport: 'Relatório de Actividade',
180
180
  titleKmsReport: 'Relatórios de Kms',
181
+ titleIdleReport: 'Relatórios de Ralenti',
181
182
  from: 'De',
182
183
  to: 'a',
183
184
  headerStartAddress: 'Local de início',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "1.0.272",
3
+ "version": "1.0.276",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -9,6 +9,7 @@ const {getStyle} = require("./reportStyle")
9
9
  const {getUserPartner} = require("fleetmap-partners")
10
10
  const traccar = require("./util/traccar")
11
11
  const {createKmsReport} = require("./kms-report");
12
+ const {isInsideTimetable} = require("./util/trips");
12
13
 
13
14
  let traccarInstance
14
15
  let userData
@@ -214,50 +215,19 @@ function processDrivers(from, to, drivers, data) {
214
215
  if(userData.groupByDay) {
215
216
  const dates = getDates(from, to)
216
217
  for(const date of dates){
217
- if(userData.allWeek || !userData.weekDays){
218
- const fromByDay = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0)
219
- const toByDay = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 23, 59, 59)
220
-
221
- const tripsByDay = trips.filter(t => new Date(t.startTime) > fromByDay && new Date(t.endTime) < toByDay)
222
-
223
- driverData.summary.push({
224
- date: date,
225
- distance: tripsByDay.filter(t => t.distance > 0).reduce((a, b) => a + b.distance, 0),
226
- engineHours: tripsByDay.reduce((a, b) => a + b.duration, 0),
227
- maxSpeed: tripsByDay.reduce((a, b) => Math.max(a, b.maxSpeed), 0),
228
- averageSpeed: tripsByDay.length > 0 ? Math.round(tripsByDay.reduce((a, b) => a + b.averageSpeed, 0) / tripsByDay.length) : 0,
229
- })
230
- } else {
231
- if((date.getDay() === 0 && userData.weekDays.sunday) ||
232
- (date.getDay() === 1 && userData.weekDays.monday) ||
233
- (date.getDay() === 2 && userData.weekDays.tuesday) ||
234
- (date.getDay() === 3 && userData.weekDays.wednesday) ||
235
- (date.getDay() === 4 && userData.weekDays.thursday) ||
236
- (date.getDay() === 5 && userData.weekDays.friday) ||
237
- (date.getDay() === 6 && userData.weekDays.saturday)) {
238
-
239
- const fromByDay = new Date(new Date(date).toISOString().split('T')[0] + ' ' + userData.dayHours.startTime)
240
- const toByDay = new Date(new Date(date).toISOString().split('T')[0] + ' ' + userData.dayHours.endTime)
241
-
242
- const tripsByDay = trips.filter(t => new Date(t.startTime) > fromByDay && new Date(t.endTime) < toByDay)
243
-
244
- driverData.summary.push({
245
- date: date,
246
- distance: tripsByDay.filter(t => t.distance > 0).reduce((a, b) => a + b.distance, 0),
247
- engineHours: tripsByDay.reduce((a, b) => a + b.duration, 0),
248
- maxSpeed: tripsByDay.reduce((a, b) => Math.max(a, b.maxSpeed), 0),
249
- averageSpeed: tripsByDay.length > 0 ? Math.round(tripsByDay.reduce((a, b) => a + b.averageSpeed, 0) / tripsByDay.length) : 0,
250
- })
251
- }else {
252
- driverData.summary.push({
253
- date: date,
254
- distance: 0,
255
- engineHours: 0,
256
- maxSpeed: 0,
257
- averageSpeed: 0,
258
- })
259
- }
260
- }
218
+ const fromByDay = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0)
219
+ const toByDay = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 23, 59, 59)
220
+
221
+ const tripsByDay = trips.filter(t => (new Date(t.startTime) > fromByDay && new Date(t.endTime) < toByDay)
222
+ && (userData.allWeek || !userData.weekDays || isInsideTimetable(t, userData)))
223
+
224
+ driverData.summary.push({
225
+ date: date,
226
+ distance: tripsByDay.filter(t => t.distance > 0).reduce((a, b) => a + b.distance, 0),
227
+ engineHours: tripsByDay.reduce((a, b) => a + b.duration, 0),
228
+ maxSpeed: tripsByDay.reduce((a, b) => Math.max(a, b.maxSpeed), 0),
229
+ averageSpeed: tripsByDay.length > 0 ? Math.round(tripsByDay.reduce((a, b) => a + b.averageSpeed, 0) / tripsByDay.length) : 0,
230
+ })
261
231
  }
262
232
  } else {
263
233
  driverData.summary.push({