[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 21/27: Ajout fonction pour calculer pourcent
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 21/27: Ajout fonction pour calculer pourcentage répartition clef |
Date: |
Thu, 02 Oct 2014 14:23:16 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 7fbb56438e21957c6ccd631a9df366297057d308
Author: Dany De Bontridder <address@hidden>
Date: Thu Sep 18 15:09:13 2014 +0200
Ajout fonction pour calculer pourcentage répartition clef
---
html/js/anc_script.js | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/html/js/anc_script.js b/html/js/anc_script.js
index d75d48e..efef197 100644
--- a/html/js/anc_script.js
+++ b/html/js/anc_script.js
@@ -524,4 +524,26 @@ function add_row_key(p_table)
}
}
$('total_key').innerHTML="?";
+}
+function anc_key_compute_table()
+{
+ var tot=0;
+ var i=0;
+ var value=0;
+ var percent=document.getElementsByName('percent[]');
+ for (i=0;i<percent.length;i++)
+ {
+ console.log(percent[i].value);
+ value=percent[i].value;
+ if ( value == 'undefined')
+ {
+ value=0;
+ }
+ if ( isNaN(value)) {
+ value=0;
+ }
+ tot=tot+Math.round(value*100)/100;
+ }
+ $('total_key').innerHTML=Math.round(tot*100)/100;
+
}
\ No newline at end of file
- [Noalyss-commit] [noalyss] 07/27: Javascript script : posY, (continued)
- [Noalyss-commit] [noalyss] 07/27: Javascript script : posY, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 08/27: Add new keys, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 12/27: Add documentation add_row_key Task #1021 - Comptabilité analytique : clef de répartition : bouton ajout, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 06/27: Possibilité d'utiliser la comptabilité analytique en mode linéaire (non croisée) Task #1020 - Comptabilité analytique : utilisation non croisée des plans, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 11/27: Distribution key ; bouton ajout ligne Task #1021 - Comptabilité analytique : clef de répartition : bouton ajout, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 02/27: Ajout des clef de répartition pour la comptabilité analytique, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 09/27: Distribution key : add button new, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 17/27: remove debug info, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 03/27: Database::make_array ajoute un paramètre dans le cas où le SQL admet une condition, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 16/27: Add p_jrn is the bottom of the popup, to allow the use of distribution key, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 21/27: Ajout fonction pour calculer pourcentage répartition clef,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 20/27: Cosmetique : alignement colonne pourcent, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 14/27: remove debug info, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 13/27: Add documentation add_row_key, remove secund parameter, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 01/27: Ajout des clef de répartition pour la comptabilité analytique, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 24/27: Task #0001030: PRINTBAL : mettre le numéro de compte en première colonne Task #1030 - PRINTBAL : mettre le numéro de compte en première colonne, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 27/27: Task #1024 : add a message Task #1024 - Comptabiltié analytique : table activité lors confirmation, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 26/27: Task #1024 : add a message Task #1024 - Comptabiltié analytique : table activité lors confirmation, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 15/27: add script for table Distribution keys, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 19/27: fix several bugs : when adding new keys or new rows in a key Task #1021 - Comptabilité analytique : clef de répartition : bouton ajout, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 25/27: Task #1029: PRINTBAL : année précédente dans une autre couleur Task #1029 - PRINTBAL : année précédente dans une autre couleur, Dany De Bontridder, 2014/10/02