-
Notifications
You must be signed in to change notification settings - Fork 25
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
In the pro patron account, some paid fees still appear. #1373
Comments
@zannkukai It reminds me something, such as a PR that you proposed. Does it ring a bell to you? 🔔 |
@iGormilhit it seems not be linked. Subscriptions creation and transactions management come from 2 distinct modules. |
For dark reasons some payment are not corresponding to the total amount. The problem is now : how to know how this strange amount is has been placed ? Simple solution : click on "pay all" to create an new payment event and closed the transaction. |
@zannkukai
Solution: prevent to pay an amount with 3 digits after comma? Would it be possible? |
Problem found ! It's due to bit reprsentation of real number in python
|
The bit representation of real number (https://en.wikipedia.org/wiki/IEEE_754) cause problem with arithmetic operation on them (10-9.54 = 0.460000000000085). This commit fixes this problem by multiplying transaction amount by 100 and cast them into integer when arithmetic operations are done. Closes rero#1373 Co-Authored-by: Renaud Michotte <renaud.michotte@gmail.com>
The bit representation of real number (https://en.wikipedia.org/wiki/IEEE_754) cause problem with arithmetic operation on them (10-9.54 = 0.460000000000085). This commit fixes this problem by multiplying transaction amount by 100 and cast them into integer when arithmetic operations are done. Closes rero#1373 Co-Authored-by: Renaud Michotte <renaud.michotte@gmail.com>
The bit representation of real number (https://en.wikipedia.org/wiki/IEEE_754) cause problem with arithmetic operation on them (10-9.54 = 0.460000000000085). This commit fixes this problem by multiplying transaction amount by 100 and cast them into integer when arithmetic operations are done. Closes rero#1373 Co-Authored-by: Renaud Michotte <renaud.michotte@gmail.com>
The bit representation of real number (https://en.wikipedia.org/wiki/IEEE_754) cause problem with arithmetic operation on them (10-9.54 = 0.460000000000085). This commit fixes this problem by multiplying transaction amount by 100 and cast them into integer when arithmetic operations are done. Closes #1373 Co-Authored-by: Renaud Michotte <renaud.michotte@gmail.com>
Describe the bug
In the pro interface, patron account, tab Fees, some paid fees still appear.
To Reproduce
Expected behavior
The paid fees should appear only in the fee history.
Context
Proposed by the pilot libraries
Screenshots
The text was updated successfully, but these errors were encountered: