summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorrde <rde@odoo.com>2017-10-31 17:57:38 +0100
committerRomain Derie <rde@odoo.com>2017-11-11 17:10:17 +0100
commit1bd44e1106d02812aa8866ddc2835ac0f4ee200f (patch)
treefece6519c1c9a23b280ca09336e1b091ad483331 /addons/web/static/src/js/views/basic/basic_controller.js
parent74e116fcc137a6a51cc9684435d7752ffcd5b66d (diff)
[FIX] website_sale_coupon: update reward line total when changing product qty on cart
- Add a product (imac 1.799$) and a promo code (eg: 10%) in your cart - Go to checkout (/shop/cart). You now see 1,619.10 Total and 179.90 discount - Change product qty (eg: 2) - Subtotal is now 2x 1.799 - 179.90 instead of 2x 1.799 - 2x 179.90 - Reward line total (discount) is still the same amount (10% on 1 ipad) Now, we will recompute the discount price based on the entire cart Note: This behavior was wanted and comes from this commit #87d542 But for the shop, we need to have the reward line being updated on the fly or it wont make sense for the end user. This closes #ee4be7a532dd707a0cd19c766dc8e8537dcda242
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions