We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I just noticed that try_parse_with_delim assumes that a positive amount is given and will return incorrect results for negative inputs.
try_parse_with_delim
abrechnung/abrechnung/utils.py
Lines 63 to 73 in 648aeed
The cent amount is added to the parsed euro amount, while it must be subtracted for negative inputs.
Example:
>>> try_parse_with_delim("-2.5", '.') -150
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
I just noticed that
try_parse_with_delim
assumes that a positive amount is given and will return incorrect results for negative inputs.abrechnung/abrechnung/utils.py
Lines 63 to 73 in 648aeed
The cent amount is added to the parsed euro amount, while it must be subtracted for negative inputs.
Example:
The text was updated successfully, but these errors were encountered: