diff --git a/Controleur/ControleurAjaxdetailprescription.php b/Controleur/ControleurAjaxdetailprescription.php
index 54725d8..7d0a320 100755
--- a/Controleur/ControleurAjaxdetailprescription.php
+++ b/Controleur/ControleurAjaxdetailprescription.php
@@ -13,6 +13,8 @@ class ControleurAjaxdetailprescription extends Controleur {
private $garantie;
private $ouinonrenouvelable;
private $ged;
+ private $controle;
+ private $idControle;
public function __construct() {
$this->prescription = new Prescription();
@@ -25,10 +27,12 @@ class ControleurAjaxdetailprescription extends Controleur {
public function index()
{
- $idControle = $this->requete->getParametre("id");
+ $controle = $this->controle;
+ $idControle = $this->idControle;
var_dump(
array(
+ "controle" => $controle,
"idControle" => $idControle,
)
);
@@ -71,11 +75,12 @@ class ControleurAjaxdetailprescription extends Controleur {
$idMedicament = $this->requete->getParametre("idMedicament");
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
- $idControle = $this->requete->getParametre("idControle");
+ $this->controle = $this->requete->getParametre("controle");
+ $this->idControle = $this->requete->getParametre("idControle");
$this->detailprescription->majquantite($idMedicament, $quantite);
- $this->executerAction("index", $idControle);
+ $this->executerAction("index");
}
public function majposologie()
@@ -127,10 +132,8 @@ class ControleurAjaxdetailprescription extends Controleur {
$montantTotalMedicament = $this->prescription->getParamMontantTotalMedicament();
-
$this->detailprescription->majdetailprescriptionaccordprealable($montantTotalMedicament);
-
$this->executerAction("index");
}
diff --git a/Js/fonctions.js b/Js/fonctions.js
index 0ad675c..e6e5153 100755
--- a/Js/fonctions.js
+++ b/Js/fonctions.js
@@ -3234,6 +3234,7 @@ function ajax_maj_qte_medicament(idMedicament, quantite, controle)
donnees = 'idMedicament='+idMedicament+"&quantite="+quantite;
donnees += "&idControle="+V_idControle;
+ donnees += "&controle=quantite";
alert(donnees);
diff --git a/Vue/gabarit.php b/Vue/gabarit.php
index 92f42d4..7920759 100755
--- a/Vue/gabarit.php
+++ b/Vue/gabarit.php
@@ -892,7 +892,7 @@
-
+