noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 18/107: Mantis #0001651: Problème avec totau


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 18/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 60a033458bf25d35a7f0319d8b686c1f87a76c79
Author: Dany De Bontridder <address@hidden>
Date:   Mon Feb 18 22:02:38 2019 +0100

    Mantis #0001651: Problème avec totaux en CA
---
 html/js/anc_script.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/html/js/anc_script.js b/html/js/anc_script.js
index 9e2b7a3..101470d 100644
--- a/html/js/anc_script.js
+++ b/html/js/anc_script.js
@@ -162,9 +162,8 @@ function verify_ca(div)
                 } else {
                     amount = Math.round(amount*100)/100;
                 }
-                var diff = amount - total_amount;
-
-                if (Math.round(diff, 2) != 0.0)
+                var diff = amount*100 - total_amount*100;
+                if (Math.round(diff/100) != 0.0)
                 {
                     g(table).style.backgroundColor = 'red';
                     amount_error++;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]