40 lines
1.2 KiB
PHP
Executable File
40 lines
1.2 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Seance_temp.php';
|
|
|
|
class ControleurAjaxfacturatioseancecso extends Controleur {
|
|
|
|
public function __construct() {
|
|
$this->prescription = new Seance_temp();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
/*
|
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
|
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
|
*/
|
|
$numeroBonKine = $_SESSION['p_numeroBonKine_C'];
|
|
|
|
$prescription = $this->prescription->getprescription_sea($numeroBonKine);
|
|
|
|
$this->genererVueAjax(array('prescription' => $prescription));
|
|
}
|
|
|
|
public function modifierseancecso()
|
|
{
|
|
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
|
|
$prixActe = $this->requete->getParametreFormulaire("prixActe", "numerique");
|
|
|
|
$fraisReel = round($prixActe*$quantite);
|
|
$montantTm = round(($fraisReel*$_SESSION['p_tm_C'])/100);
|
|
$aRembourser = $fraisReel-$montantTm;
|
|
|
|
$this->prescription->modifierseancecso($quantite, $fraisReel, $montantTm, $aRembourser);
|
|
}
|
|
|
|
public function facturerseance()
|
|
{
|
|
$this->prescription->facturerseance();
|
|
}
|
|
} |