This commit is contained in:
KANE LAZENI 2026-07-18 09:01:52 +00:00
parent 66ba0bdf05
commit e552d16bf1
3 changed files with 15 additions and 6 deletions

View File

@ -29047,10 +29047,22 @@ function annuler_substitution_medicament_new(idDetail) {
function init_prolongation_hospit()
{
const v_msg = "En envoyant un avis de prologation, vous ne pourrez plus modifié les séjours antérieurs! Souhaitez-vous continuer?";
prestationsTotal = $("#prestationsTotal").val();
prestationsTotal = parseInt(prestationsTotal);
alert("prestationsTotal => "+prestationsTotal);
if(prestationsTotal==0)
{
v_msg="Veuillez saisir au moins un prix de prestation!";
v_msgEng="Please enter at least one service price!";
alert_ebene(v_msg, v_msgEng);
return;
}
const v_msg = "En envoyant un avis de prologation, vous ne pourrez plus modifié les séjours antérieurs! Souhaitez-vous continuer?";
const v_msgEng = "Once the extension notice is sent, previous stays can no longer be modified. Do you want to continue?";
// Appel de la confirmation unifiée
confirm_ebene_sweet(v_msg, v_msgEng).then(function(isConfirm) {
if(isConfirm) {
$("#btnPopAvisProrogation").click();

View File

@ -5,6 +5,6 @@
<button type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popAjoutChambre" style='font-size:12pt;' > <?= _("Envoyer un avis de prorogation") ?> </button>
<?php endif; ?>
-->
<input class="sr-only" id="prestationsTotal" name="prestationsTotal" type="number" value= "<?= $prestations_total['totalPrixManuel'] ?>" >
<button type="button" class="form-control btn btn-primary" style='font-size:12pt;' onclick="javascript:init_prolongation_hospit();"> <?= _("Envoyer un avis de prorogation -- INIT") ?> </button>
<button id="btnPopAvisProrogation" name="btnPopAvisProrogation" class="sr-only" data-bs-toggle="modal" data-bs-target="#popAjoutChambre" > </button>

View File

@ -295,7 +295,6 @@
?>
<div id="infosbon">
<!-- debut new -->
<?php if($codeGestionBon!="0"): ?>
<?php if (($numeroBonHospitalisation>"0" && $avisHospitalisation!="0" && $modeSaisieFacture=="0") || ($numeroBonHospitalisation>"0" && (($avisHospitalisation=="0" || $avisHospitalisation=="1" || $avisHospitalisation=="9") && $modeSaisieFacture=="1"))) : ?>
<table class="table table-responsive table-condensed" style='font-size:12pt;'>
@ -335,8 +334,6 @@
<?php endif; ?>
<?php endif; ?>
<?php else: ?>
<!-- Fin new -->
<input class="sr-only" type="text" id="codeEtatBon" name="codeEtatBon" value="">
<input class="sr-only" type="text" id="numeroBonSave" name="numeroBonSave" value="0">
<?php if ($numeroBonHospitalisation>"0" && ($avisHospitalisation=="1")) : ?>