Mantis #0001651: Problème avec totaux en CA

This commit is contained in:
Dany De Bontridder 2019-02-18 22:02:38 +01:00
parent 2cffe46e01
commit 60a033458b

View file

@ -162,9 +162,8 @@ function verify_ca(div)
} else {
amount = Math.round(amount*100)/100;
}
var diff = amount - total_amount;
if (Math.round(diff, 2) != 0.0)
var diff = amount*100 - total_amount*100;
if (Math.round(diff/100) != 0.0)
{
g(table).style.backgroundColor = 'red';
amount_error++;