[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
- [Noalyss-commit] [noalyss] 14/73: Cosmetic bg color tabs, (continued)
- [Noalyss-commit] [noalyss] 14/73: Cosmetic bg color tabs, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 42/73: Cosmetic : position of "invoice, template , ..." after saving an operation, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 43/73: Improve Manage_Table : align column numeric to the right by default, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 18/73: Direct Access with a Single AC (without the full path), Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 30/73: Historic : search on currency, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 26/73: Cosmetic : select_box for javascript , display the selected option, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 25/73: Cosmetic : icon in dialog box, lightblue when hover, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 46/73: Improve Sort Table ,, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 27/73: Javascript : waiting box display when exporting in PDF or CSV, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 37/73: Cosmetic improve smoke dg box, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 39/73: Bug #0001971: erreur calcul dans champ prix/unité htva,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 06/73: Cosmetic, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 08/73: Warning if PHPVERSION < 7.2, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 10/73: Cosmetic : update fontello, button inplace_edit, doc, logo and dashboad, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 16/73: Currency : add a check , upgrade version of DB, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 24/73: Bug Select_Box = problem with DIV id, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 29/73: Cosmetic : display properly currency in detail operation, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 34/73: javascript : test and improve cosmetic, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 36/73: improve captcha, replace the global variable by a "DEFINE" constant, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 41/73: Cosmetic : Card History, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 47/73: Fix block problem with font, Dany De Bontridder, 2021/05/28