From cdc52e324b587e9b54eec8dfd857aa0ca86d402e Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Thu, 1 Jan 2026 10:19:58 +0100 Subject: [PATCH] =?UTF-8?q?Am=C3=A9liorations=20cosm=C3=A9tiques?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.html | 7 +++---- scripts.js | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/config.html b/config.html index 7695c17..8cb3a61 100644 --- a/config.html +++ b/config.html @@ -1,9 +1,5 @@ {{* -*- brindille -*- *}} -{{if $_GET.ok == 1}} -

Configuration enregistrée.

-{{/if}} - {{* lecture config (défaut ou enregistrée) *}} {{:include file="./_get_config.html" keep="module.config, config_defaut"}} @@ -51,6 +47,9 @@ {{:admin_header title="Configuration" custom_css="./style.css" current="module_amortissement"}} {{:include file="_nav.html" current="config"}} +{{if $_GET.ok == 1}} +

Configuration enregistrée.

+{{/if}} {{* récupérer l'exercice courant ou sinon le plus récent *}} {{:assign var="selected_year" from="logged_user.preferences.accounting_year"}} diff --git a/scripts.js b/scripts.js index 0d6a9b5..2b1ef51 100644 --- a/scripts.js +++ b/scripts.js @@ -80,7 +80,7 @@ function setDateEnd(id_exercices, id_date, id_years) { // renvoyer la valeur numérique d'un montant formaté en € function getNumber(text) { - return Number(text.replace(/[ \xa0]/g, '').replace(/,/, '.').replace(/€/, '')); + return Number(text.replace(/[^0-9,]/g, '').replace(/,/, '.')); } // calculer le montant d'un amortissement