a
This commit is contained in:
parent
0b4fbffc10
commit
ddc6200ad2
|
|
@ -13,14 +13,22 @@ class ControleurAjaxprixseancesea extends Controleur {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function index() {
|
public function index() {
|
||||||
$codeActe = $this->requete->getParametreFormulaire("codeActe");
|
$codeActe = $this->requete->getParametreFormulaire("codeActe");
|
||||||
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
|
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
|
||||||
|
// 10/03/2026 => prix modifiable
|
||||||
|
$prixSaisi = $this->requete->getParametreFormulaire("prixSaisi", "numerique");
|
||||||
|
|
||||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||||
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
||||||
$numeroBonKine = $_SESSION['p_numeroBonKine_C'];
|
$numeroBonKine = $_SESSION['p_numeroBonKine_C'];
|
||||||
|
|
||||||
$this->prescription->modifierseancesea($codeActe, $quantite, $numeroBonKine);
|
$prixActeModifiable = $_SESSION['p_prixActeModifiable'];
|
||||||
|
|
||||||
|
if($prixActeModifiable=="0"){
|
||||||
|
$this->prescription->modifierseancesea($codeActe, $quantite, $numeroBonKine);
|
||||||
|
}else{
|
||||||
|
$this->prescription->modifierprixseancesea($codeActe, $quantite, $numeroBonKine, $prixSaisi);
|
||||||
|
}
|
||||||
|
|
||||||
$prescription = $this->prescription->getprescription_sea($numeroBonKine);
|
$prescription = $this->prescription->getprescription_sea($numeroBonKine);
|
||||||
|
|
||||||
|
|
|
||||||
131
Js/fonctions.js
131
Js/fonctions.js
|
|
@ -12269,73 +12269,7 @@ function afficher_facturation_seance()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function ajaxprixseancesea()
|
|
||||||
{
|
|
||||||
codeActe = $("#codeActe").val();
|
|
||||||
|
|
||||||
if (codeActe<=" ")
|
|
||||||
{
|
|
||||||
$("#prixActe_info").val("0");
|
|
||||||
$("#totalActe_info").val("0");
|
|
||||||
$("#montantTm_info").val("0");
|
|
||||||
$("#aRembourser_info").val("0");
|
|
||||||
$("#depassement_info").val("0");
|
|
||||||
|
|
||||||
v_msg="Veuillez s\u00e9lectionner un act!";
|
|
||||||
v_msgEng="Please select an act!";
|
|
||||||
alert_ebene(v_msg, v_msgEng);
|
|
||||||
|
|
||||||
$("#codeActe").focus();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
quantite = $("#quantiteSeance").val();
|
|
||||||
|
|
||||||
quantite = parseInt(quantite);
|
|
||||||
|
|
||||||
if(quantite==0)
|
|
||||||
{
|
|
||||||
$("#quantiteSeance").val(1);
|
|
||||||
quantite = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
nbRestant = $("#nbRestant").val();
|
|
||||||
nbRestant = parseInt(nbRestant);
|
|
||||||
|
|
||||||
if(quantite>nbRestant)
|
|
||||||
{
|
|
||||||
v_msg="Vous ne pouvez pas d\u00e9passer "+nbRestant+" s\u00e9ances!";
|
|
||||||
v_msgEng="Only "+nbRestant+" sessions are possible!";
|
|
||||||
alert_ebene(v_msg, v_msgEng);
|
|
||||||
quantite = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
prixSaisi = $("#prixSaisi").val();
|
|
||||||
donnees = 'codeActe='+codeActe+'&quantite='+quantite;
|
|
||||||
donnees += '&prixSaisi='+prixSaisi;
|
|
||||||
|
|
||||||
alert("ajaxprixseancesea => "+donnees);
|
|
||||||
return;
|
|
||||||
|
|
||||||
$("#infosacte").html('<div style="text-align:center; color: #4caf50 ; font-size:14px;"><span><i class="fa fa-spinner fa-spin fa-5x" >' + '</span></div>');
|
|
||||||
|
|
||||||
|
|
||||||
$.ajax({
|
|
||||||
url: $("#racineWeb").val()+"Ajaxprixseancesea/",
|
|
||||||
type : 'post',
|
|
||||||
data: donnees,
|
|
||||||
error: function(errorData) {
|
|
||||||
},
|
|
||||||
success: function(data) {
|
|
||||||
$("#infosacte").html(data);
|
|
||||||
},
|
|
||||||
complete: function() {
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// Facturation SEANCE KINE
|
// Facturation SEANCE KINE
|
||||||
|
|
||||||
async function valider_seance_sea() {
|
async function valider_seance_sea() {
|
||||||
// Validate prior agreement requirement
|
// Validate prior agreement requirement
|
||||||
const ententePrealableSea = $("#ententePrealableSea").val();
|
const ententePrealableSea = $("#ententePrealableSea").val();
|
||||||
|
|
@ -28823,3 +28757,68 @@ function modifier_prix_seance_kine() {
|
||||||
|
|
||||||
ajaxprixseancesea();
|
ajaxprixseancesea();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function ajaxprixseancesea()
|
||||||
|
{
|
||||||
|
codeActe = $("#codeActe").val();
|
||||||
|
|
||||||
|
if (codeActe<=" ")
|
||||||
|
{
|
||||||
|
$("#prixActe_info").val("0");
|
||||||
|
$("#totalActe_info").val("0");
|
||||||
|
$("#montantTm_info").val("0");
|
||||||
|
$("#aRembourser_info").val("0");
|
||||||
|
$("#depassement_info").val("0");
|
||||||
|
|
||||||
|
v_msg="Veuillez s\u00e9lectionner un act!";
|
||||||
|
v_msgEng="Please select an act!";
|
||||||
|
alert_ebene(v_msg, v_msgEng);
|
||||||
|
|
||||||
|
$("#codeActe").focus();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
quantite = $("#quantiteSeance").val();
|
||||||
|
|
||||||
|
quantite = parseInt(quantite);
|
||||||
|
|
||||||
|
if(quantite==0)
|
||||||
|
{
|
||||||
|
$("#quantiteSeance").val(1);
|
||||||
|
quantite = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
nbRestant = $("#nbRestant").val();
|
||||||
|
nbRestant = parseInt(nbRestant);
|
||||||
|
|
||||||
|
if(quantite>nbRestant)
|
||||||
|
{
|
||||||
|
v_msg="Vous ne pouvez pas d\u00e9passer "+nbRestant+" s\u00e9ances!";
|
||||||
|
v_msgEng="Only "+nbRestant+" sessions are possible!";
|
||||||
|
alert_ebene(v_msg, v_msgEng);
|
||||||
|
quantite = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
prixSaisi = $("#prixSaisi").val();
|
||||||
|
donnees = 'codeActe='+codeActe+'&quantite='+quantite;
|
||||||
|
donnees += '&prixSaisi='+prixSaisi;
|
||||||
|
|
||||||
|
alert("ajaxprixseancesea => "+donnees);
|
||||||
|
return;
|
||||||
|
|
||||||
|
$("#infosacte").html('<div style="text-align:center; color: #4caf50 ; font-size:14px;"><span><i class="fa fa-spinner fa-spin fa-5x" >' + '</span></div>');
|
||||||
|
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url: $("#racineWeb").val()+"Ajaxprixseancesea/",
|
||||||
|
type : 'post',
|
||||||
|
data: donnees,
|
||||||
|
error: function(errorData) {
|
||||||
|
},
|
||||||
|
success: function(data) {
|
||||||
|
$("#infosacte").html(data);
|
||||||
|
},
|
||||||
|
complete: function() {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -397,4 +397,19 @@ class Seance_temp extends Modele {
|
||||||
|
|
||||||
$this->executerRequete($sql, array($idSaisie, $user, $prixSaisi));
|
$this->executerRequete($sql, array($idSaisie, $user, $prixSaisi));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function modifierprixseancesea($codeActe, $quantite, $numeroBonKine, $prixSaisi)
|
||||||
|
{
|
||||||
|
$numeroPrescriptionKine = $_SESSION['p_numeroPrescriptionKine_C'];
|
||||||
|
$user = $_SESSION['p_login'];
|
||||||
|
$idSaisie = $_SESSION['p_idSaisie'];
|
||||||
|
$tm = $_SESSION['p_tm_C'];
|
||||||
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||||
|
|
||||||
|
// $sql = 'call sp_p_modifier_seance_sea(?, ?, ?, ?, ?, ?, ?);';
|
||||||
|
$sql = 'call sp_p_modifier_prix_seance_sea(?, ?, ?, ?, ?, ?, ?, ?);';
|
||||||
|
|
||||||
|
$this->executerRequete($sql, array($numeroPrescriptionKine, $codeActe, $user, $idSaisie, $tm, $quantite, $codePrestataire, $prixSaisi));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -17,8 +17,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$prixActeModifiable = $_SESSION['p_prixActeModifiable'];
|
$prixActeModifiable = $_SESSION['p_prixActeModifiable'];
|
||||||
|
|
||||||
echo "prixActeModifiable => $prixActeModifiable";
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$vueParent = $_SESSION['p_vueRetour'];
|
$vueParent = $_SESSION['p_vueRetour'];
|
||||||
|
|
||||||
|
$prixActeModifiable = $_SESSION['p_prixActeModifiable'];
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user