Skip to content
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

Unable to change fuel quantity type when submitting. #113

Open
alexanderfitu opened this issue Jan 10, 2023 · 1 comment
Open

Unable to change fuel quantity type when submitting. #113

alexanderfitu opened this issue Jan 10, 2023 · 1 comment

Comments

@alexanderfitu
Copy link

Please complete the following information

  • Installation Type: [Docker/]
  • Have you tried using the latest docker image / code base [yes/]

Describe the bug
When vehicle type set to "Gallons", you are unable to enter a fill-up log with the fuel quantity value set to "Liters", when you press submit, you receive "AxiosError: Request failed with status code 500"

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'create fillup'
  2. Enter all details, and change the unit type from vehicle default to something else
  3. Press submit

Expected behavior
The calculated fill value should be units X quantity and this should then be entered.

Additional context
This may be an outlying use case, but in the UK we measure our fuel economy in Miles per gallon, but measure and pay for fuel in Liters and £ per litre (which is silly I know).

This means that the fuel economy screen on the vehicle summary shows Miles per Litre which is an unusual unit here. I think a workaround is to change fuel unit under vehicle to "Gallons" to show MPG chart, then back to "Liters" for day to day filling, but I do not know if this has other implications.

@alexanderfitu
Copy link
Author

As a follow-up, changing the fuel type after adding fill-ups only changes the graph labelling, so not a suitable workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant