account-payment
account-payment copied to clipboard
[14.0] [FIX] account_payment_term_discount: Difference in rounding
In the context of this module's application, we encountered a specific issue involving:
- Discount Amount: 229.95
- Payment Difference: 229.95000000000002
Although there is no rounding in _compute_payment_difference() of account module and this module performs rounding in _compute_discount_amt().
This discrepancy in rounding can lead to different comparison results.
This commit aims to rectify the inconsistency in rounding between these two fields, ensuring accurate comparisons.
Hi @bodedra, some modules you are maintaining are being modified, check this out!
@majouda Thanks for your contribution. Would you add screenshot or example before and after this PR changes, please?
@majouda Thanks for your contribution. Would you add screenshot or example before and after this PR changes, please?
Hello @bodedra I added a description to this PR, can you check plz if it's clear now?
This PR has the approved
label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖