This commit is contained in:
KANE LAZENI 2026-07-28 22:29:35 +00:00
parent 5f65974732
commit 8d5e5e5006
3 changed files with 49 additions and 2 deletions

View File

@ -11950,6 +11950,8 @@ function actualiser_seance()
// SEANCES KINE // SEANCES KINE
async function valider_seance_sea_cso() { async function valider_seance_sea_cso() {
alert("valider_seance_sea_cso");
// Validate prior agreement requirement // Validate prior agreement requirement
const ententePrealableSea = $("#ententePrealableSea").val(); const ententePrealableSea = $("#ententePrealableSea").val();
if (ententePrealableSea > 1) { if (ententePrealableSea > 1) {
@ -11981,7 +11983,7 @@ async function valider_seance_sea_cso() {
} }
alert("numeroBonSeance => "+numeroBonSeance); alert("numeroBonSeance => "+numeroBonSeance);
// Validate act selection // Validate act selection
const codeActe = $("#codeActe").val().trim(); const codeActe = $("#codeActe").val().trim();
if (!codeActe) { if (!codeActe) {

View File

@ -131,6 +131,51 @@
</tbody> </tbody>
</table> </table>
<!-- 26/07/2026 => DEBUT gérer les OTP ici -->
<?php if($otpStatus=="-1" || $otpStatus=="1"): ?>
<input style='font-size:10pt;' class="form-control btn btn-info" type="button" onclick="valider_seance_sea_cso()" value="<?= _("Facturer") ?>" />
<?php else:
switch ($otpStatus) {
case 0:
$messageOtp = _("Veuillez envoyer un code de vérification à l'assuré!");
break;
case 2:
$messageOtp = _("Veuillez saisir le code de vérification reçu par l'assuré sur son téléphone portable ou son adresse e-mail!");
break;
case 9:
$messageOtp = _("Code incorrect, veuillez réessayer!");
break;
default:
$messageOtp = _("Veuillez envoyer un code de vérification à l'assuré!");
}
?>
<h5 class="alert alert-danger" style="height:35px; padding:5px; text-align:center; margin-bottom:5px;"> <?= $messageOtp ?> </h5>
<?php if($otpStatus=='0') : ?>
<form action="Pharmacien/envoyerotp" method="post">
<?php else: ?>
<form action="Pharmacien/confirmerotp" method="post">
<?php endif; ?>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<?php if($otpStatus=='0') : ?>
<td> <input style='font-size:10pt;' class="form-control btn btn-info" type="submit" name="submit" value="<?= _("Envoyer Code") ?>" /> </td>
<?php elseif($otpStatus=='2'): ?>
<td> <INPUT style='font-size:10pt; text-align:center;' class="form-control" type="text" id="otpValue" name="otpValue" required AUTOCOMPLETE="OFF" autofocus > </td>
<td> <input style='font-size:10pt;' class="form-control btn btn-primary" type="submit" name="submit" value="<?= _("Vérifier Code") ?>" /> </td>
<?php else: ?>
<td> <INPUT style='font-size:10pt; text-align:center;' class="form-control" type="text" id="otpValue" name="otpValue" required AUTOCOMPLETE="OFF" autofocus > </td>
<td> <input style='font-size:10pt;' class="form-control btn btn-warning" type="submit" name="submit" value="<?= _("Vérifier Code à nouveau") ?>" /> </td>
<?php endif; ?>
</tr>
</tbody>
</table>
</form>
<?php endif; ?>
<!-- 26/07/2026 => FIN gérer les OTP ici -->
<div id="div_fraisExclu"> <div id="div_fraisExclu">
<input class="sr-only" type="text" id="fraisExclu" name="fraisExclu" value="0" > <input class="sr-only" type="text" id="fraisExclu" name="fraisExclu" value="0" >
</div> </div>

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"> <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="https://cdn.jsdelivr.net/npm/toastr@2.1.4/build/toastr.min.js" crossorigin="anonymous"></script>
<script src="Js/fonctions.js?ver=2026.07.28.02"></script> <script src="Js/fonctions.js?ver=2026.07.28.03"></script>
<script src="Bootstrap/js/bootstrap.min.js"></script> <script src="Bootstrap/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@3/dist/vue.global.prod.js"></script> <script src="https://cdn.jsdelivr.net/npm/vue@3/dist/vue.global.prod.js"></script>