diff --git a/Controleur/ControleurAjaxdetailpharmacien.php b/Controleur/ControleurAjaxdetailpharmacien.php index 5f6169e..76e43c6 100644 --- a/Controleur/ControleurAjaxdetailpharmacien.php +++ b/Controleur/ControleurAjaxdetailpharmacien.php @@ -125,10 +125,20 @@ class ControleurAjaxdetailpharmacien extends Controleur { $idMedicament = $this->requete->getParametre("idMedicament"); $prix = $this->requete->getParametreFormulaire("prix", "numerique"); - // $this->detailprescription->majquantitepha($idMedicament, $quantite); $this->detailprescription->majprixpha($idMedicament, $prix); $this->executerAction("index"); } + + public function majposologie() + { + $idMedicament = $this->requete->getParametre("idMedicament"); + $posologie = $this->requete->getParametreFormulaire("posologie"); + + $this->detailprescription->majposologie($idMedicament, $posologie); + + $this->executerAction("index"); + } + } diff --git a/Js/fonctions.js b/Js/fonctions.js index a511ab6..1b3e351 100644 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -18858,6 +18858,7 @@ function telRwanda(valeur) function envoyer_prescription_medicament() { + numeroBondonnance = $('#numeroBon').val(); smsOrdonnance = $('#smsOrdonnance').val(); const numero = telRwanda(smsOrdonnance); @@ -18871,24 +18872,52 @@ function envoyer_prescription_medicament() return; } - donnees = 'smsOrdonnance='+numero; + donnees = 'numeroBondonnance='+numeroBondonnance+"&smsOrdonnance="+numero; alert(donnees); - + + var div_wait = $('#div_wait'); + div_wait.html('
' + 'Veuillez patienter...' + '
' + 'Veuillez patienter...' + '| = _("Libellé") ?> | -= _("Unité") ?> | -= _("Valeur") ?> | -= _("Qté") ?> | -= _("Frais") ?> | -= _("T M") ?> | -= _("A Remb") ?> | -= _("Suppr") ?> | -= _("Bon") ?> | -= _("Rempl") ?> | += _("Unité") ?> | += _("Valeur") ?> | += _("Qté") ?> | += _("Frais") ?> | += _("T M") ?> | += _("A Remb") ?> | += _("Suppr") ?> | += _("Bon") ?> | += _("Rempl") ?> | = _("Accord") ?> | -= _("Rempl") ?> | += _("Rempl") ?> | + "1" && $bonCaduc!="1") : ?> + + + + + | += format_N($this->nettoyer($detailprescription['fraisReel'])) ?> | = format_N($this->nettoyer($detailprescription['montantTm'])) ?> | = format_N($this->nettoyer($detailprescription['montantArembourser'])) ?> |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|