From 67573d0510b3ee5ee25f76ba44b36cbdc5ddece4 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Tue, 17 Feb 2015 22:43:24 +0100 Subject: [PATCH] =?UTF-8?q?Bug=20#1090=20:=20Comptabilit=C3=A9=20analytiqu?= =?UTF-8?q?e=20=C3=A0=20partir=20=C3=A9cran=20confirm=C3=A9:=20somme=20inc?= =?UTF-8?q?orrecte?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/js/anc_script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/js/anc_script.js b/html/js/anc_script.js index aa4edfaa2..84e90c947 100644 --- a/html/js/anc_script.js +++ b/html/js/anc_script.js @@ -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; }