Community mailing list archives

community@mail.odoo.com

Rounding issue

by
Prasad
- 10/06/2016 20:44:22

Hi ,

Greetings for the Day!

I am facing with rounding value problem. Please see below scenario.

Suppose
X= 893.23
Y=63.92
Z=50.07

Now I subtract Y and Z from X

Will get 777.24

Now I will dived into 3 parts
A=49.5% of 80% of 777.24
B=20%of80% 777.24
C=10.5%of80%777.24

A=482.15475
B=194.81
C=102.27525

When final sum this

Y+Z+A+B+C  I am getting
.01 difference which on the screen so posting of account entry showing unbalanced. The height is I am not able trace the difference in code. I had put error message in the code when there is difference but showing error but showing difference on screen

Please he'll

Regards
Prasad