diff --git a/Controleur/ControleurOpticien.php b/Controleur/ControleurOpticien.php
index 84820f4..efc0241 100755
--- a/Controleur/ControleurOpticien.php
+++ b/Controleur/ControleurOpticien.php
@@ -12,8 +12,7 @@ require_once 'Modele/Garantiesbaremepriseencharge.php';
require_once 'Modele/Detailtarifacte.php';
require_once 'Modele/Feuillemaladie.php';
-
-class ControleurOpticien extends Controleur {
+class ControleurOpticien extends Controleur {
private $menuvue;
private $beneficiaire;
private $prescription;
@@ -79,7 +78,6 @@ class ControleurOpticien extends Controleur {
$idBeneficiaire = $resultat['idBeneficiaire'];
-
$_SESSION['p_idBeneficiaire_C'] = $idBeneficiaire;
$codeGarantie = "OPT";
@@ -88,38 +86,28 @@ class ControleurOpticien extends Controleur {
$prescription = $this->prescription->getoptique_opt($numeroBonOptique);
-
-
$numeroFeuilleMaladie = $prescription['numeroFeuilleMaladie'];
$_SESSION['p_numeroFeuilleMaladie_C'] = $numeroFeuilleMaladie;
$contestation = $this->feuille->getContestation($numeroFeuilleMaladie);
-
$datePrestation = $this->prescription->getDatePrestation($numeroFeuilleMaladie);
$_SESSION['datePrestation'] = $datePrestation;
$initgarantieBareme = $this->acte->initGarantieBareme($idBeneficiaire, $codeGarantie, $numeroFeuilleMaladie);
-
$this->garantie->getsourcebaremegarantienew($idBeneficiaire, $codeGarantie, $datePrestation);
$statutGarantie = $this->garantie->getstatutgarantie($idBeneficiaire, $codeGarantie);
$motifStatut = $this->garantie->getlibellemotifdepassement($statutGarantie);
-
$beneficiaire = $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire);
-
-
$_SESSION['idOptique'] = $prescription['id'];
-
-
- //$tauxCouverture = $this->prescription->tauxCouverture();
-
+
$tm = $this->detail->ticketModerateurDefinitif($codeGarantie, "", $datePrestation);
$tauxCouverture = (100-$tm)."%";
@@ -139,8 +127,6 @@ class ControleurOpticien extends Controleur {
$numeroOptique = $prescription['numeroOptique'];
- //var_dump($detailnonlivres); die();
-
$acte = $this->acte->getActeOptique($datePrestation);
$doubleFoyer = $this->oui_non->getListe();
@@ -158,11 +144,7 @@ class ControleurOpticien extends Controleur {
$transition = $this->oui_non->getListe();
$antiBuee = $this->oui_non->getListe();
$filtreBleu = $this->oui_non->getListe();
-
- //$baremes = $this->acte->getActesGarantieOptique();
-
-
- //$detail_total = $this->acte->getTotalDetailOptique();
+
$detail_total = $this->acte->getTotalDetailOptiqueTemp();
$numeroEntentePrealable = $this->detailprescription->getNumeroDemandeaccord($numeroBonOptique);
diff --git a/Modele/Optique_temp.php b/Modele/Optique_temp.php
index 4e3b589..1af8316 100755
--- a/Modele/Optique_temp.php
+++ b/Modele/Optique_temp.php
@@ -55,19 +55,12 @@ class Optique_temp extends Modele {
$user = $_SESSION['p_login'];
- //var_dump($numeroBonOptique, $idSaisie, $user);
- //die();
-
$sql = 'call sp_p_get_optique_temp_opt(?, ?, ?)';
$prescription = $this->executerRequete($sql, array($numeroBonOptique, $idSaisie, $user));
-
$ligne = $prescription->fetch(PDO::FETCH_ASSOC);
- //var_dump($ligne);
-
-
$_SESSION['p_numeroOptique_C'] = $ligne['numeroOptique'];
$_SESSION['p_numeroFeuilleMaladie_C'] = $ligne['numeroFeuilleMaladie'];
$_SESSION['p_idFacture_C'] = $ligne['idFacture'];
diff --git a/Vue/Opticien/index.php b/Vue/Opticien/index.php
index fd2fab5..4aec604 100755
--- a/Vue/Opticien/index.php
+++ b/Vue/Opticien/index.php
@@ -81,11 +81,14 @@
$idPrestationactes = $this->nettoyer($prescription['idPrestationactes']);
$agePrescription = $this->nettoyer($prescription['agePrescription']);
$bonCaduc = $this->nettoyer($prescription['bonCaduc']);
-
+ $otpStatus = $this->nettoyer($prescription['otpStatus']);
+
+ if($modeSaisieFacture=="1")
+ {
+ $bonCaduc = "0";
+ $otpStatus = -1; // Pas OTP en mode Décompte
+ }
?>
-
-
-
@@ -127,24 +130,6 @@
-
|
nettoyer($prescription['bonCaduc'])=="0") : ?>
+
+
+
+
|