[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 02/05: Bug #1090 : Comptabilité analytique à
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 02/05: Bug #1090 : Comptabilité analytique à partir écran confirmé: somme incorrecte |
Date: |
Tue, 17 Feb 2015 22:23:43 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 67573d0510b3ee5ee25f76ba44b36cbdc5ddece4
Author: Dany De Bontridder <address@hidden>
Date: Tue Feb 17 22:43:24 2015 +0100
Bug #1090 : Comptabilité analytique à partir écran confirmé: somme
incorrecte
---
html/js/anc_script.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/html/js/anc_script.js b/html/js/anc_script.js
index aa4edfa..84e90c9 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;
}