[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 17/107: Mantis #0001651: Problème avec totau
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 17/107: Mantis #0001651: Problème avec totaux en CA |
Date: |
Mon, 26 Aug 2019 10:31:48 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 2cffe46e01f1cbef1c0922553cafb8d77832f0d2
Author: Dany De Bontridder <address@hidden>
Date: Mon Feb 18 21:57:16 2019 +0100
Mantis #0001651: Problème avec totaux en CA
---
html/js/anc_script.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/html/js/anc_script.js b/html/js/anc_script.js
index 97e524d..9e2b7a3 100644
--- a/html/js/anc_script.js
+++ b/html/js/anc_script.js
@@ -83,11 +83,11 @@ function compute_total_table(p_table, seq)
for (i = 0; i < col.length; i++)
{
if ( $(p_table).contains(col[i])) {
- rounded_value = parseFloat(col[i].value);
- tot += Math.round(rounded_value*100)/100;
+ rounded_value = Math.round(parseFloat(col[i].value) *100);
+ tot += rounded_value
}
}
- return tot;
+ return tot/100;
}
catch (e)
{
@@ -106,6 +106,7 @@ function anc_refresh_remain(p_table, p_seq)
{
var tot_line =Math.abs( parseFloat(g('amount_t' + p_seq).value));
var tot_table = compute_total_table(p_table, p_seq);
+
var remain = tot_line - tot_table;
remain = Math.round(remain * 100) / 100;
$('remain' + p_table).innerHTML = remain;
- [Noalyss-commit] [noalyss] 11/107: Security : replace $_GET by Http_Input + translate, (continued)
- [Noalyss-commit] [noalyss] 11/107: Security : replace $_GET by Http_Input + translate, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 13/107: Icon_Action : add icon for menu, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 16/107: Icon_Action add icon for locking , unlocking, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 24/107: Debug : Add memory info, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 18/107: Mantis #0001651: Problème avec totaux en CA, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 09/107: translation, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 04/107: Php7.2 incompatibility, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 10/107: Security : replace $_GET by Http_Input, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 06/107: TEST : fix some little bugs, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 14/107: Accounting : Cosmetic change icon more by arrow, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 17/107: Mantis #0001651: Problème avec totaux en CA,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 12/107: Code cleaning replace $start and $end by $periode_...>value to avoid to get it several times, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 23/107: Bug javascript mispelled function show_tab, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 21/107: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss into dev7016, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 15/107: Icon_Action : add testing + cosmetic for Icon_Action::menu, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 22/107: typo, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 26/107: Code Cleaning : replace tempname with sys_get_temp_dir Merge commit 'd85d6f8c77083fb997441a672d222bb10836af3e' into dev7109, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 27/107: Improve : depending if pdftk is a snap or not , his path must be a setting, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 30/107: New function PDF:is_fill add documentation, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 35/107: indent code, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 37/107: Card : allow to specify the max displaid rows, Dany De Bontridder, 2019/08/26