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 @@
-
+