a
This commit is contained in:
parent
2420cc2be0
commit
b049585fb2
|
|
@ -16,11 +16,11 @@ class ControleurAjaxprixacte extends Controleur {
|
|||
$codeActe = $this->requete->getParametreFormulaire("codeActe");
|
||||
$datePrestation = $this->requete->getParametreDate("datePrestation");
|
||||
$codeGarantie = "CON";
|
||||
// 09/03/2026 => prix modifiable
|
||||
$prixSaisi = $this->requete->getParametreFormulaire("prixSaisi", "numerique");
|
||||
|
||||
$_SESSION['datePrestation'] = $datePrestation;
|
||||
|
||||
|
||||
|
||||
$idBeneficiaire = $_SESSION['p_idBeneficiaire_C'];
|
||||
|
||||
$this->garantie->getsourcebaremenew($idBeneficiaire, $codeActe, $datePrestation);
|
||||
|
|
@ -66,7 +66,7 @@ class ControleurAjaxprixacte extends Controleur {
|
|||
|
||||
$dateFinDelaiCarenceActe = $_SESSION['p_bareme']['bareme_finDelaiCarence'];//$this->acte->getDateFinDelaiCarenceActe();
|
||||
|
||||
$infosActe = $this->acte->get_infos_acte($codeActe, $datePrestation);
|
||||
$infosActe = $this->acte->get_infos_acte($codeActe, $datePrestation, $prixSaisi);
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1844,7 +1844,12 @@ function ajaxprixacte()
|
|||
|
||||
$("#infosacte").html('<div style="text-align:center; color: #4caf50 ; font-size:14px;"><span><i class="fa fa-spinner fa-spin fa-5x" >' + '</span></div>');
|
||||
|
||||
prixSaisi = $('#prixSaisi').val();
|
||||
|
||||
donnees = 'codeActe='+codeActe+'&datePrestation='+datePrestation;
|
||||
donnees += '&prixSaisi='+prixSaisi;
|
||||
|
||||
alert(donnees);
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxprixacte/",
|
||||
|
|
|
|||
|
|
@ -972,15 +972,17 @@ public function getseancespossiblesprescription()
|
|||
}
|
||||
|
||||
//Modifier par sorel le 29-05-2023
|
||||
public function get_infos_acte($codeActe, $datePrestation) {
|
||||
// public function get_infos_acte($codeActe, $datePrestation) {
|
||||
public function get_infos_acte($codeActe, $datePrestation, $prixSaisi) {
|
||||
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$idBeneficiaire = $_SESSION['p_idBeneficiaire_C'];
|
||||
|
||||
// $sql = 'call sp_get_infos_acte_tarif_newversion(?, ?, ?, ?);';
|
||||
// maj 09/03/20296 => prix modifiable
|
||||
$sql = 'call sp_get_infos_acte_tarif_newversion(?, ?, ?, ?, ?);';
|
||||
|
||||
$sql = 'call sp_get_infos_acte_tarif_newversion(?, ?, ?, ?);';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($codeActe, $codePrestataire, $idBeneficiaire, $datePrestation));
|
||||
$resultat = $this->executerRequete($sql, array($codeActe, $codePrestataire, $idBeneficiaire, $datePrestation, $prixSaisi));
|
||||
|
||||
return $resultat->fetch(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@
|
|||
<input class="form-control" style="border:none; background-color:transparent !important;" type="text" value="" readonly >
|
||||
|
||||
<?php if($prixActeModifiable=="1") : ?>
|
||||
<input class="form-control" type="number" value="<?= $prixActe ?>" onchange="modifier_prix_acte();" >
|
||||
<input class="form-control" type="number" id="prixSaisi" name="prixSaisi" value="<?= $prixActe ?>" onchange="modifier_prix_acte();" >
|
||||
<?php else: ?>
|
||||
<button id="prixActe_info" name="prixActe_info" TYPE="button" class="form-control button" style="text-align: center; font-size:10pt; font-weight:bold; background-color:#5f9ea0; color:white;" title="<?= _("Voir le tarif appliqué") ?>" onclick='javascript:tarif_applique("<?=$tarif ?>");'>
|
||||
<i class="fa fa-hand-pointer-o pull-right" ></i>
|
||||
|
|
@ -141,7 +141,7 @@
|
|||
<td width="15%" style="font-weight:bold;"> <?= _("Réclamé") ?> </td>
|
||||
<td width="20%" >
|
||||
<?php if($prixActeModifiable=="1") : ?>
|
||||
<input class="form-control" type="number" value="<?= $prixActe ?>" onchange="modifier_prix_acte();" >
|
||||
<input class="form-control" type="number" id="prixSaisi" name="prixSaisi" value="<?= $prixActe ?>" onchange="modifier_prix_acte();" >
|
||||
<?php else: ?>
|
||||
<button id="prixActe_info" name="prixActe_info" TYPE="button" class="form-control span_link" style="text-align: center; font-size:10pt; font-weight:bold;" title="<?= _("Voir le tarif appliqué") ?>" onclick='javascript:tarif_applique("<?=$tarif ?>");'>
|
||||
<i class="fa fa-hand-pointer-o pull-right" ></i>
|
||||
|
|
|
|||
|
|
@ -521,7 +521,7 @@ p_prixActeModifiable
|
|||
<tbody>
|
||||
<tr>
|
||||
<td width="15%" > <?= _("Prix Acte") ?> </td>
|
||||
<td width="20%" > <input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="text" value="0" readonly> </td>
|
||||
<td width="20%" > <input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="text" type="number" id="prixSaisi" name="prixSaisi" value="0" readonly> </td>
|
||||
|
||||
<td width="15%" align="center"> <?= _("Montant T M") ?> </td>
|
||||
<td width="20%" > <input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="text" value="0" readonly ></td>
|
||||
|
|
|
|||
|
|
@ -909,7 +909,7 @@
|
|||
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.css" integrity="sha512-3pIirOrwegjM6erE5gPSwkUzO+3cTjpnV9lexlNZqvupR64iZBnOOTiiLPb9M36zpMScbmUNIcHUqKD47M719g==" crossorigin="anonymous" referrerpolicy="no-referrer" />-->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js" integrity="sha512-VEd+nq25CkR676O+pLBnDW09R7VQX9Mdiij052gVCp5yVH3jGtH70Ho/UUv4mJDsEdTvqRCFZg0NKGiojGnUCw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
|
||||
<script src="Js/fonctions.js?ver=2026.03.09.01"></script>
|
||||
<script src="Js/fonctions.js?ver=2026.03.09.02"></script>
|
||||
<script src="Bootstrap/js/bootstrap.min.js"></script>
|
||||
|
||||
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user