Rounding Off issue in Sales Return for vAT value


i am facing rounding off issue while making Sales Return in VAT value not in all cases when it

Suppose Value AED 108.50, VAT 5 %= 5.425 ie, 5.43

But it is showing 5.43 , but once saving it becomes 5.42.

Kindly help

Whether to round up or down here is a ‘policy convention’ for example

1 Like

ok yes indeed the code:

implements this

Except the rounding algorithm applies here to real numbers (rather than integers), to a specified number of decimal digit precision

1 Like