From f3c1641b830fc9ef0806d41df8ecdce2af103d14 Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Sun, 26 Jul 2026 14:12:56 +0000 Subject: [PATCH] a --- Js/fonctions.js | 25 ++++++++++++++++++++++--- Vue/gabarit.php | 2 +- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/Js/fonctions.js b/Js/fonctions.js index 49fdf39..126c8a0 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -5360,10 +5360,29 @@ async function facturer_feuillemaladie() { const otpStatus = $("#otpStatus").val(); // Gestion OTP facturation alert("otpStatus => "+otpStatus); + let o_msg = ""; + let o_msgEng = ""; + + switch (otpStatus) { + case 0: + o_msg = "Veuillez envoyer un code de vérification à l'assuré!"; + o_msgEng = "Please send a verification code to the insured.!"; + break; + case 2: + o_msg = "Veuillez saisir le code de vérification reçu par l'assuré sur son téléphone portable ou son adresse e-mail!"; + o_msgEng = "Please enter the verification code received by the insured person on their mobile phone or at their email address!"; + break; + case 9: + o_msg = "Code incorrect, veuillez réessayer!"; + o_msgEng = "Incorrect code, please try again!"; + break; + default: + o_msg = "Veuillez envoyer un code de vérification à l'assuré!"; + o_msgEng = "Please send a verification code to the insured!"; + } + if (otpStatus!=1 && otpStatus!=-1) { - const v_msg = "Déjà facturé!"; - const v_msgEng = "Already charged!"; - alert_ebene(v_msg, v_msgEng); + alert_ebene(o_msg, o_msgEng); return; } diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 9fb6c47..0e611b6 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -885,7 +885,7 @@ - +