noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 39/73: Bug #0001971: erreur calcul dans champ


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 39/73: Bug #0001971: erreur calcul dans champ prix/unité htva
Date: Fri, 28 May 2021 05:26:33 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 1cb712d57caefc12bc1ce14956324e482cc1a38e
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Apr 25 23:32:47 2021 +0200

    Bug #0001971: erreur calcul dans champ prix/unité htva
---
 html/js/scripts.js | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/html/js/scripts.js b/html/js/scripts.js
index 60d67fd..6932dda 100644
--- a/html/js/scripts.js
+++ b/html/js/scripts.js
@@ -289,6 +289,7 @@ function compute_number(value)
          points dans le nombre et eval() lève une exception*/
         try
         {
+            console.debug("value = "+value);
             retval = eval(value);
         } catch (e)
         {
@@ -320,7 +321,7 @@ function format_number(obj, p_prec)
         precision = p_prec;
     }
     var value = obj.value;
-    value = value.replace(/,/, '.');
+    value = value.replace(/,/g, '.');
     
     value=compute_number(value);    
     
@@ -604,15 +605,7 @@ function popup_select_tva(obj)
         alert_box("popup_select_tva " + e.message);
     }
 }
-/**
- *@brief display the popup with vat and explanations
- *@deprecated this function is not used anymore
- */
-function success_popup_select_tva_obsolete(req)
-{
-
 
-}
 
 /**
  *@brief display the popup with vat and explanation



reply via email to

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