Bug #1090 : Comptabilité analytique à partir écran confirmé: somme incorrecte
This commit is contained in:
parent
90693b7396
commit
67573d0510
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue