laravelshoppingcart icon indicating copy to clipboard operation
laravelshoppingcart copied to clipboard

Cart condition calculation error

Open simioluwatomi opened this issue 4 years ago • 1 comments

Looking at this screenshot, I don't think the maths adds up...

Annotation 2020-06-24 165350

First off; the product price on display is the discount price of the product. Discount is applied as a percentage condition on the item. This is correctly calculated.

VAT (Value Added Tax) is added as a condition on the Cart itself. The VAT is currently set at 7.5%.

The parsed value of the VAT is 2,070 while the calculated value (which is currently displayed) is 2,225.25.

If my maths is correct, the calculated value is wrong because 7.5% of 27,600 is 2,070. So I'm wondering how the calculated value output 2,225.25

Let's even assume for a minute that the calculated value is correct. Then the total then doesn't add up.

Because

27,600 + 2,225.25 = 29,825.25‬

WHILE

27,600 + 2,070 = 29,670

Thank you for this wonderful package! It has saved me a lot of work 👍👍👍

simioluwatomi avatar Jun 24 '20 16:06 simioluwatomi

Is this issue fixed? If fixed, what is the solution?

debuEkodus avatar Sep 15 '20 08:09 debuEkodus