Incorrect value of the reduced price in the cart #2892
Labels
5: Complex
bug
Bug reports
P2: Important
Priority mark - still high ;)
QA approved after merge
Testers will add this label after positive check on merged changes
QA approved on branch
Testers will add this label after positive check on specific branch.
Milestone
Current behavior
Currently, then reduced price visible in the cart is not correctly calculated:
Reduced price = (net price * discount) + (net price * tax)
For example:
Net product price is 24, tax (23%) is 5.92 - so the full price of the product is 29.92.
The customer adds a 50% discount coupon.
Reduced price = (24 * 0,5) + (24 * 0,23) = 12 + 5,92 = 17,92
Despite this, all values shown in the summary are correct, the client pays the correct amount.
Expected behavior
The tax value should also be reduced by the discount.
Reduced price = (net price * discount) + ((net price * discount) * tax)
So the tax after the reduction is 2.76, and the correct reduced price of the product is 14.76.
Steps to reproduce the issue
Can you handle fixing this bug by yourself?
Which Release Cycle state this refers to? Info for developer.
Pick one option.
develop
branch and create Pull Request2. Feature / Improvement
back todevelop
.release
branch and create Pull Request3. Stabilisation fix
back torelease
.hotfix
ormaster
branch and create Pull Request4. Hotfix
back tohotfix
.Environment details
Additional info
The same happens when any other discount rule is applied (any cart or catalog price rule).
The text was updated successfully, but these errors were encountered: