[ic] Total-cost is not equal to discounted price plus tax

murahashi interchange-users@icdevgroup.org
Sat Jan 18 06:55:01 2003


Hi,

I have a problem with calculation of total-cost under discount rate and tax
calculation.

My system is IC 4.8.3.

currency_symbol Yen
frac_digits 0

My problem is Total-cost is not equal to discounted price plus tax.

For example, Subtotal is 25450Yen.
5% Discounted price is 24178Yen. The rounded is fine.
5% Tax is 1209Yen. It is correct too.
So Total-cost should be 24178 + 1209 = 25387Yen.

But, [total-cost] showed 25386 Yen.

[total-cost] may be  25450 * 0.95 * 1.05 = 25386.375, and round is 25386
Yen.


My checkout calculation tags are as follows.

[discount ENTIRE_ORDER][/discount][subtotal]
[discount ENTIRE_ORDER] $s * 0.95[/discount]
[salestax]
[total-cost]

What should I do?

Murahashi