-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stats sum is wrong, if "This Year" is selected #87
Comments
Will look into it |
Thx! If you need my db, logs or something like that let me know. |
Might it possible, that the first fillup to a vehicle is not included in the sum? If you need help let me know, I'm a (embedded) software engineer ;-) |
I've looked into the code and found the error: |
I've found another error. If in the stats "This week" is selected, you need to call toDate.setHours(0, 0, 0, 0) to set the time to midnight. |
Should I create a pullrequest? |
Please do
…On Tue, 12 Jul 2022 at 00:24, heikok88 ***@***.***> wrote:
Should I create a pullrequest?
—
Reply to this email directly, view it on GitHub
<#87 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEMVPSIULZ5UE76LGGZQCDVTRUVRANCNFSM5UGFB5WQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Thanks and Regards,
Akhil Gupta
|
Just created the PR |
Please complete the following information
Describe the bug
I have only one Vehicle in Hammond with only 5 fillups in 2022.
The stats are wrong if I select "This Year".
"Past 3 Months" and "All Time" are correct. See the screenshots
Expected behavior
If "This Year" is selected, the first fillup (Jan 25, 2022, 78,93 €) is missing in the sum and should be included.
Screenshots
The text was updated successfully, but these errors were encountered: