## News:

Looking for documentation? Take a look on our wiki

## How can the shop function when the maths is wrong? This is fundamental

Started by iamalive, July 24, 2012, 11:38:45 AM

#### iamalive

Hi

I can't work out how a discount is calculated during the payment process.

I have a product with price 236.02;
Tax is 8% = 18.88
Total Price = 254.90
Cost of sending is 12.00
Discount for prepayment is 3% which to me is must be either calculated on price before tax is 7.08 or 7.65 with tax or 8.01 with postage as well. What is shown is 8.26
After that the tax is shown as 18. 27

The logic and the maths escape me here. Can someone explain the calculation steps for me please. I have to explain it to the shop owner.

Regards
David

David Jakob
..stressfreie Webseiten von http://websites4u.ch...

#### John2400

mmm,

followed exactly what you asked for ? see my end result.
I added 8% tax on products and 3% discount on bill - shipping not included

#### iamalive

Given that we have used the same numbers, how can such different results be achieved. I don't get it.

What is the calculation behind the component? what steps does it take to get the result? As I said, I need to be able to explain it to those who use the component.

Thanks for any help.

Regards
Dvid
David Jakob
..stressfreie Webseiten von http://websites4u.ch...

#### John2400

#3
Joomla 2.5.6  and VM 2.0.8 e

* product shown - and price
* Tax one
* Tax 2

have a look - and see if you have something else throwing off your calculations -

#### iamalive

Ha!

Silly me - I have never spotted that with the arithmetic operations previously.

Thank you very much for pointing it out. Now I can see how to go about it.

Regards

David
David Jakob
..stressfreie Webseiten von http://websites4u.ch...