This commit is contained in:
KANE LAZENI 2026-07-27 17:11:05 +00:00
parent 95f136b028
commit b788f8434f
2 changed files with 30 additions and 1 deletions

View File

@ -6304,6 +6304,35 @@ async function valider_opticien() {
return;
}
const otpStatus = Number($("#otpStatus").val());
// Gestion OTP facturation
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) {
alert_ebene(o_msg, o_msgEng);
return;
}
// Show confirmation dialog
const isConfirmed = await confirm_ebene_sweet(
"Confirmez-vous cette facturation?",

View File

@ -885,7 +885,7 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/toastr@2.1.4/build/toastr.min.css" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/toastr@2.1.4/build/toastr.min.js" crossorigin="anonymous"></script>
<script src="Js/fonctions.js?ver=2026.07.27.04"></script>
<script src="Js/fonctions.js?ver=2026.07.27.05"></script>
<script src="Bootstrap/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@3/dist/vue.global.prod.js"></script>