[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 12/27: Add documentation add_row_key Task #1
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 12/27: Add documentation add_row_key Task #1021 - Comptabilité analytique : clef de répartition : bouton ajout |
Date: |
Thu, 02 Oct 2014 14:23:12 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit d4df471899415d68ba8dcd5cd151ee7ba47f748e
Author: Dany De Bontridder <address@hidden>
Date: Wed Sep 17 00:50:55 2014 +0200
Add documentation add_row_key
Task #1021 - Comptabilité analytique : clef de répartition : bouton ajout
---
html/js/anc_script.js | 24 ++++++------------------
1 files changed, 6 insertions(+), 18 deletions(-)
diff --git a/html/js/anc_script.js b/html/js/anc_script.js
index 723697a..1d65ca6 100644
--- a/html/js/anc_script.js
+++ b/html/js/anc_script.js
@@ -481,31 +481,23 @@ function anc_key_choice(p_dossier, p_table, p_amount)
error_message(e.message);
}
}
-function add_row_key(p_table, p_seq)
+/**
+ * Add a row for distribution key.
+ * This function add a row in the table key distribution
+ * @param p_table table id
+ */
+function add_row_key(p_table)
{
var mytable = g(p_table).tBodies[0];
- // var max = parseFloat(g('amount_t' + p_seq).value);
if (!mytable)
{
return;
}
- var new_value = mytable.rows.length + 1;
-
-
if (mytable.rows.length > 15)
{
alert("Maximum 15 lignes ");
return;
}
- /* var amount = compute_total_table(p_table, p_seq);
- if (max < amount)
- {
- alert('Montant incorrect : max = ' + max + " calculé=" + amount);
- return;
- }
- */
- // For the detail view (modify_op) there is several form and then several
time the
- // element
var rowToCopy = mytable.rows[1];
var row = mytable.insertRow(mytable.rows.length);
@@ -528,8 +520,4 @@ function add_row_key(p_table, p_seq)
}
}
$('total_key').innerHTML="?";
- /* var col = document.getElementsByName("val[" + p_seq + "][]");
- col[col.length - 1].value = max - amount;
- anc_refresh_remain(p_table, p_seq);
- */
}
\ No newline at end of file
- [Noalyss-commit] [noalyss] branch master updated (59e76cb -> 5864835), Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 04/27: Documentation, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 05/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] 10/27: Distribution key ; bug cosmetique, rappel des valeurs incorrectes, Dany De Bontridder, 2014/10/02
- [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 <=
- [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, 2014/10/02
- [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