a
This commit is contained in:
parent
8471f8582b
commit
37177b1a90
27
Controleur/ControleurFacturesfamilleadh.php
Normal file
27
Controleur/ControleurFacturesfamilleadh.php
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
<?php
|
||||||
|
require_once 'Framework/Controleur.php';
|
||||||
|
require_once 'Modele/Facture.php';
|
||||||
|
|
||||||
|
require_once 'Modele/Menuvueutilisateur.php';
|
||||||
|
|
||||||
|
class ControleurFacturesfamilleadh extends Controleur {
|
||||||
|
private $facture;
|
||||||
|
|
||||||
|
public function __construct() {
|
||||||
|
$this->menuvue = new Menuvueutilisateur();
|
||||||
|
$this->menuvue->getMenuVue('Facturesfamilleadh');
|
||||||
|
|
||||||
|
$this->facture = new Facture();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
$idAdherent = $_SESSION['idAdherent_C'];
|
||||||
|
$d1 = $_SESSION['dUneSemaineAvant_C'];
|
||||||
|
$d2 = date('Y-m-d');
|
||||||
|
|
||||||
|
$factures = $this->facture->getfacturesfamille($idAdherent, $d1, $d2) ;
|
||||||
|
|
||||||
|
$this->genererVue(array('factures' => $factures));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -3172,3 +3172,8 @@ function rapport_sp_adherent()
|
||||||
{
|
{
|
||||||
window.location.assign($("#racineWeb" ).val()+"Spadherent/");
|
window.location.assign($("#racineWeb" ).val()+"Spadherent/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function factures_famille_2()
|
||||||
|
{
|
||||||
|
window.location.assign($("#racineWeb" ).val()+"Facturesfamilleadh/");
|
||||||
|
}
|
||||||
|
|
|
||||||
119
Vue/Facturesfamilleadh/index.php
Normal file
119
Vue/Facturesfamilleadh/index.php
Normal file
|
|
@ -0,0 +1,119 @@
|
||||||
|
<?php
|
||||||
|
$this->titre = "INTER-SANTE - Factrures famille";
|
||||||
|
?>
|
||||||
|
|
||||||
|
<legend> <?= _("Historique de factures de la famille") ?> </legend>
|
||||||
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td width="10%" > <?= _("Période du") ?> </td>
|
||||||
|
<td width="20%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="d1" NAME="d1" value="<?= dateLang($_SESSION['dUneSemaineAvant_C'], $_SESSION['lang']) ?>" required></td>
|
||||||
|
|
||||||
|
<td width="10%" align="center" > <?= _("au") ?> </td>
|
||||||
|
<td width="20%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="d2" NAME="d2" value="<?= dateCouranteLang($_SESSION['lang']) ?>" required></td>
|
||||||
|
|
||||||
|
<td> </td>
|
||||||
|
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:listerfacturefamille();"><?= _("Actualiser...") ?></button> </td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<button id="btn_pop_consulter_facture" NAME="btn_pop_consulter_facture" type="button" class="sr-only" data-toggle="modal" data-target="#pop_consulter_facture"> </button>
|
||||||
|
|
||||||
|
<div id="div_dossiers">
|
||||||
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th style='text-align:center'> Type </th>
|
||||||
|
<th style='text-align:center'> <?= _("No Bon") ?> </th>
|
||||||
|
<th style='text-align:center'> <?= _("Id Fact") ?> </th>
|
||||||
|
<th style='text-align:center'> Date </th>
|
||||||
|
<th> <?= _("Prestataire") ?> </th>
|
||||||
|
<th> <?= _("Bénéficiaire") ?> </th>
|
||||||
|
<th style='text-align:center'> <?= _("Frais") ?> </th>
|
||||||
|
<th style='text-align:center'> <?= _("T M") ?> </th>
|
||||||
|
<th style='text-align:center'> <?= _("A Remb") ?> </th>
|
||||||
|
<th style='text-align:center'> <?= _("Dépas") ?> </th>
|
||||||
|
<th style='text-align:center'> <?= _("Ret") ?> </th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
|
<?php foreach ($factures as $facture):
|
||||||
|
$idFacture=$this->nettoyer($facture['idFacture']);
|
||||||
|
$numeroFeuilleMaladie=$this->nettoyer($facture['numeroFeuilleMaladie']);
|
||||||
|
$tiersPayant = $facture['tiersPayant'];
|
||||||
|
|
||||||
|
$codeTypeFacture = $this->nettoyer($facture['codeTypeFacture']);
|
||||||
|
|
||||||
|
$numeroBon = $this->nettoyer($facture['numeroBonConsultation']);
|
||||||
|
|
||||||
|
if($codeTypeFacture=="PHAR")
|
||||||
|
{
|
||||||
|
$numeroBon = $this->nettoyer($facture['numeroBonOrdonnance']);
|
||||||
|
}
|
||||||
|
elseif($codeTypeFacture=="OPT")
|
||||||
|
{
|
||||||
|
$numeroBon = $this->nettoyer($facture['numeroBonOptique']);
|
||||||
|
}
|
||||||
|
elseif($codeTypeFacture=="LAB")
|
||||||
|
{
|
||||||
|
$numeroBon = $this->nettoyer($facture['numeroBonExamen']);
|
||||||
|
}
|
||||||
|
elseif($codeTypeFacture=="SEA")
|
||||||
|
{
|
||||||
|
$numeroBon = $this->nettoyer($facture['numeroBonKine']);
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<tr valign="top">
|
||||||
|
|
||||||
|
<td align='center'> <?= $codeTypeFacture ?> </td>
|
||||||
|
<td align='center'> <?= $numeroBon ?> </td>
|
||||||
|
|
||||||
|
<td align='center'>
|
||||||
|
<input style='font-size:7pt;' type="button" value="<?= $idFacture ?>"
|
||||||
|
onClick="javascript:consulter_facture_pop('<?= $idFacture ?>');">
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td align='center'><?= dateheureLang($this->nettoyer($facture['dateSysteme'])) ?></td>
|
||||||
|
<td><?= $this->nettoyer($facture['prestataire']) ?></td>
|
||||||
|
<td><?= $this->nettoyer($facture['beneficiaire']) ?></td>
|
||||||
|
<td align='center'><?= format_N($this->nettoyer($facture['fraisReel'])) ?></td>
|
||||||
|
<td align='center'><?= format_N($this->nettoyer($facture['montantTm'])) ?></td>
|
||||||
|
<td align='center'><?= format_N($this->nettoyer($facture['montantArembourser'])) ?></td>
|
||||||
|
<td align='center'><?= format_N($this->nettoyer($facture['fraisExclu'])) ?></td>
|
||||||
|
<td align='center'><?= format_N($this->nettoyer($facture['fraisRetenu'])) ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="modal fade" id="pop_consulter_facture" role="dialog">
|
||||||
|
<div class="modal-dialog modal-lg">
|
||||||
|
<div class="modal-content">
|
||||||
|
|
||||||
|
<div class="modal-header">
|
||||||
|
<button id="btn_close_pop" name="btn_close_pop" type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
|
||||||
|
<h4 class="modal-title"> <?= _("Consultation facture...") ?> </h4>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="modal-body">
|
||||||
|
<div id="div_consulter_facture_pop">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="div_facture_detail">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button id="close_pop" name="close_pop" type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
@ -635,7 +635,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte'];
|
||||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||||
|
|
||||||
<!-- Application Scripts -->
|
<!-- Application Scripts -->
|
||||||
<script src="/Js/fonctions.js?ver=2026.01.05.06"></script>
|
<script src="/Js/fonctions.js?ver=2026.01.05.07"></script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
raffraichier_gabarit();
|
raffraichier_gabarit();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user