Bug #1090 : Comptabilité analytique à partir écran confirmé: somme incorrecte

This commit is contained in:
Dany De Bontridder 2015-02-17 22:43:24 +01:00
parent 90693b7396
commit 67573d0510

View file

@ -81,9 +81,9 @@ function compute_total_table(p_table, seq)
var col = document.getElementsByName("val[" + seq + "][]");
for (i = 0; i < col.length; i++)
{
// here is the problem
tot += parseFloat(col[i].value);
if ( $(p_table).contains(col[i])) {
tot += parseFloat(col[i].value);
}
}
return tot;
}