diff --git a/Controleur/ControleurAjaxhistoriqueprestation.php b/Controleur/ControleurAjaxhistoriqueprestation.php
index 1583768..c6a3fa1 100755
--- a/Controleur/ControleurAjaxhistoriqueprestation.php
+++ b/Controleur/ControleurAjaxhistoriqueprestation.php
@@ -78,4 +78,18 @@ class ControleurAjaxhistoriqueprestation extends Controleur {
return $resultat->fetch(PDO::FETCH_ASSOC);
}
+
+ public function factures()
+ {
+ $d1 = $this->requete->getParametreDate("d1");
+ $d2 = $this->requete->getParametreDate("d2");
+
+ $historiqueprestations = $this->prestationactes->gethistoriquefactures($d1, $d2);
+
+ $totalprestations = $this->prestationactes->gettotalfactures($d1, $d2);
+
+ $this->genererVueAjax(array('historiqueprestations' => $historiqueprestations,
+ 'totalprestations' => $totalprestations));
+ }
+
}
\ No newline at end of file
diff --git a/Js/fonctions.js b/Js/fonctions.js
index 91a07bd..a347d9b 100755
--- a/Js/fonctions.js
+++ b/Js/fonctions.js
@@ -18816,4 +18816,35 @@ function accueilassure(){
$("#contenu").html('
' + '' + '
');
window.location.assign($("#racineWeb" ).val()+"Accueilassure/");
-}
\ No newline at end of file
+}
+
+function afficherhistoriquefactures()
+{
+ d1=$("#d1").val();
+ d2=$("#d2").val();
+
+ donnees = 'd1='+d1+'&d2='+d2;
+
+ $("#div_prestation").html('' + '' + '
');
+
+ $.ajax({
+ url: $("#racineWeb").val()+"Ajaxhistoriqueprestation/factures/",
+ type : 'post',
+ data: donnees,
+ error: function(errorData) {
+ },
+ success: function(data) {
+ $("#div_prestation").html(data);
+
+ setTimeout(function() {
+ functionDataTable();
+ }, 1000);
+
+
+ },
+ complete: function() {
+
+ }
+ });
+
+}
diff --git a/Modele/Prestationactes.php b/Modele/Prestationactes.php
index b39ca0e..fbb29ac 100755
--- a/Modele/Prestationactes.php
+++ b/Modele/Prestationactes.php
@@ -395,5 +395,23 @@ class Prestationactes extends Modele {
return $resultat->fetch(PDO::FETCH_ASSOC);
}
+
+ public function gethistoriquefactures($d1, $d2)
+ {
+ $sql = 'call sp_a_get_historique_factures_adherent(?, ?, ?);';
+
+ $resultat = $this->executerRequete($sql, array($_SESSION['idAdherent_C'], $d1, $d2));
+
+ return $resultat->fetchAll(PDO::FETCH_ASSOC);
+ }
+
+ public function gettotalfactures($d1, $d2)
+ {
+ $sql = 'call sp_get_total_historique_factures_adherent(?, ?, ?);';
+
+ $resultat = $this->executerRequete($sql, array($_SESSION['idAdherent_C'], $d1, $d2));
+
+ return $resultat->fetch(PDO::FETCH_ASSOC);
+ }
}
\ No newline at end of file
diff --git a/Vue/Accueilassure/index.php b/Vue/Accueilassure/index.php
index 7b7a901..8897486 100755
--- a/Vue/Accueilassure/index.php
+++ b/Vue/Accueilassure/index.php
@@ -430,7 +430,7 @@
diff --git a/Vue/Ajaxhistoriqueprestation/factures.php b/Vue/Ajaxhistoriqueprestation/factures.php
new file mode 100755
index 0000000..bbf0943
--- /dev/null
+++ b/Vue/Ajaxhistoriqueprestation/factures.php
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+ | Date |
+ = _("Prestataire") ?> |
+ = _("Patient") ?> |
+ = _("Prix Total") ?> |
+ = _("Montant TM") ?> |
+ = _("Part assureur") ?> |
+
+
+
+
+
+
+
+ | = dateheureLang($this->nettoyer($prestation['dateSysteme']), $_SESSION['lang']) ?> |
+ = $this->nettoyer($prestation['prestataire']); ?> |
+ = $this->nettoyer($prestation['patient']); ?> |
+ = format_N($this->nettoyer($prestation['fraisReel'])) ?> |
+ = format_N($this->nettoyer($prestation['montantTm'])) ?> |
+ = format_N($this->nettoyer($prestation['montantArembourser'])) ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ = _("Date") ?>
+ = dateheureLang($this->nettoyer($prestation['dateSysteme']), $_SESSION['lang']) ?>
+
+
+
+
+
+ = _("Prestataire") ?>
+ = substr($this->nettoyer($prestation['prestataire']),0, 32) ?>
+
+
+
+
+
+ = _("Patient") ?>
+ = substr($this->nettoyer($prestation['patient']),0,32) ?>
+
+
+
+
+
+
+
+ = _("Prix Total") ?>
+ = format_N($this->nettoyer($prestation['fraisReel'])) ?>
+
+
+
+
+ = _("Montant TM") ?>
+ = format_N($this->nettoyer($prestation['montantTm'])) ?>
+
+
+
+
+
+ = _("Part assureur") ?>
+ = format_N($this->nettoyer($prestation['montantArembourser'])) ?>
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Vue/Ajaxhistoriqueprestation/index.php b/Vue/Ajaxhistoriqueprestation/index.php
index a6e3d71..b1f9639 100755
--- a/Vue/Ajaxhistoriqueprestation/index.php
+++ b/Vue/Ajaxhistoriqueprestation/index.php
@@ -1,67 +1,3 @@
-
\ No newline at end of file