summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2019-06-03 11:09:25 +0000
committerGoffin Simon <sig@odoo.com>2019-06-04 07:24:34 +0000
commit74706e9e033e9a513eb18eb185c2ba30d83b2ebf (patch)
tree6a0e0f018adfc6199401a040df120a4cb6a74a40 /addons/web/static/src/js/fields
parent4cdcab43ee5e325851b765ed147863b8e075240e (diff)
[FIX]payment_paypal: wrong fees computation
Steps to reproduce the bug: - Create a product P with price=100€ - Configure payment aquier Paypal with fees_int_fixed = 1€ and fees_int_var = 1% - Set Paypal to be available in the website - Go to the web shop and add P in the cart - Choose to pay with Paypal Bug: The amout to pay was 102.02€ instead of 102.01€ Before the fix, the fees was computed as followed: fees = (percentage / 100.0 * amount + fixed) / (1 - percentage / 100.0) Where fees_dom_fixed = fixed and fees_int_var = percentage With this computation, the percentage was applied twice. If for example, we had fixed = 0 then fees = (percentage / 100.0 * amount) / (1 - percentage / 100.0) In this case, it's easy to see that the percentage is applied twice. opw:1981784 closes odoo/odoo#33830 Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/fields')
0 files changed, 0 insertions, 0 deletions