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

Wrong amount saved when nr of decimals is not 2 #79

Closed
Marmo opened this issue Jan 6, 2022 · 0 comments · Fixed by #81
Closed

Wrong amount saved when nr of decimals is not 2 #79

Marmo opened this issue Jan 6, 2022 · 0 comments · Fixed by #81
Labels
bug Something isn't working
Milestone

Comments

@Marmo
Copy link
Owner

Marmo commented Jan 6, 2022

Display in EditTransaction is still correct, after saving the following happens

nr of decimals input result expected
0 1 100 1
1 1,0 10,0 1,0
2 1,00 1,00 1,00
3 1,000 0,100 1,000
@Marmo Marmo added the bug Something isn't working label Jan 6, 2022
@Marmo Marmo added this to the 1.6.2 milestone Jan 6, 2022
@Marmo Marmo closed this as completed in #81 Jan 6, 2022
Marmo added a commit that referenced this issue Jan 6, 2022
* fix wrong amounts being saved, when decimals != 2, closes #79

* remove implicit cast to narrower type

Co-authored-by: Marmo <Marmo@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant