234 lines
9.6 KiB
PHP
Executable File
234 lines
9.6 KiB
PHP
Executable File
<?php
|
|
$this->titre = "INTER-SANTE - Liste Facturation Partielle";
|
|
|
|
$actVisible = $_SESSION['p_actVisible'];
|
|
?>
|
|
|
|
<script type="text/javascript">
|
|
|
|
</script>
|
|
|
|
|
|
<legend> <?= _("Reçus imprimés") ?> </legend>
|
|
|
|
<input class="sr-only" id="nomForm" name="nomForm" type="text" value= "Listefacturepartielle" >
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:9pt;' >
|
|
<tbody>
|
|
<!--
|
|
<tr>
|
|
<td width="5%" > <?= _("Souscrip.") ?> </td>
|
|
<td width="20%">
|
|
<INPUT style='text-align:center; font-size:9pt;' class="form-control" TYPE="text" id="nomClient" name="nomClient"
|
|
value="<?= $_SESSION['p_nomClient_C'] ?>" onChange="" readonly >
|
|
</td>
|
|
|
|
<td width="5%" align="center" > <?= _("Adh.") ?> </td>
|
|
<td width="20%" > <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['p_adherent_C']; ?>" readonly style="text-align: center; font-size:9pt;" > </td>
|
|
|
|
<td width="5%" align="center"> <?= _("Bénéf.") ?> </td>
|
|
<td width="25%"> <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['p_beneficiaire_C']; ?>" readonly style='font-size:9pt;'> </td>
|
|
|
|
<td width="7%" align="center"> <?= _("Tél Bénéf.") ?> </td>
|
|
<td width="13%"> <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['p_telephonePortableBeneficiaire_C']; ?>" readonly style='font-size:9pt;'> </td>
|
|
</tr>
|
|
-->
|
|
<tr>
|
|
<td colspan="8">
|
|
<INPUT style='font-size:12pt; font-weight: bold; background-color:#f5deb3 !important; color:#a0522d; text-align:center;' class="form-control" TYPE="text" id="nomClient" name="nomClient"
|
|
value="<?= 'TAUX DE COUVERTURE : '.taux_couverture($_SESSION['p_tm_C']) ?>" onChange="" readonly >
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="3%" style="text-align:center" > <?= _("Suppr") ?> </th>
|
|
<th width="10%" style="text-align:center"> Date </th>
|
|
<th width="15%" style="text-align:center" > <?= _("Reçu No") ?> </th>
|
|
|
|
<th colspan="2" style="text-align:center"> <?= _("Acte") ?> </th>
|
|
<!--<th width="7%" style="text-align:center"> <?= _("Base Remb.") ?> </th>-->
|
|
<th width="7%" style="text-align:center"> <?= _("Prix Unitaire") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("Prix Total") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("T M") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("A Remb") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("Dépass.") ?> </th>
|
|
<th width="3%" style="text-align:center"> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach ($prestations as $prestation):
|
|
$idfacture = $this->nettoyer($prestation['id']);
|
|
$idPrestationactes = $this->nettoyer($prestation['idPrestationactes']);
|
|
$codeTypePrestation = $this->nettoyer($prestation['codeTypePrestation']);
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActeEng']);
|
|
}
|
|
else
|
|
{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActe']);
|
|
}
|
|
|
|
$codeActe = $this->nettoyer($prestation['codeActe']);
|
|
$codeGarantie = $this->nettoyer($prestation['codeGarantie']);
|
|
|
|
if($actVisible!="1")
|
|
{
|
|
$libelleActe = $codeActe;
|
|
}
|
|
|
|
$idEnteteFacture = $this->nettoyer($prestation['idEnteteFacture']);
|
|
$numeroFacture = $this->nettoyer($prestation['numeroFacture']);
|
|
|
|
if($codeActe=="CSM"){
|
|
$libelleActe = $this->nettoyer($prestation['libelleConsommable']);
|
|
}
|
|
|
|
$idProlongation = $this->nettoyer($prestation['idProlongation']);
|
|
|
|
if($idProlongation > "0"){
|
|
$libelleActe = $libelleActe." - "."PROROGATION";
|
|
}
|
|
?>
|
|
<tr>
|
|
<?php if($idEnteteFacture > '0'): ?>
|
|
<td>
|
|
<button type="button" class="form-control btn btn-danger" onClick="onClick="javascript:supprimefactureselection('<?= $idEnteteFacture ?>', '<?= $numeroFacture ?>');"">
|
|
<i class="fa fa-times" aria-hidden="true"></i>
|
|
</button>
|
|
</td>
|
|
<?php else: ?>
|
|
<td>
|
|
<button type="button" class="form-control btn btn-danger" onClick="javascript:supprimefacturepartielle('<?= $idPrestationactes ?>', '<?= $numeroFacture ?>');">
|
|
<i class="fa fa-times" aria-hidden="true"></i>
|
|
</button>
|
|
</td>
|
|
<?php endif; ?>
|
|
|
|
<td align='center'> <?= dateheureLang($this->nettoyer($prestation['dateSysteme'])) ?> </td>
|
|
<td align='center'> <?= $numeroFacture ?> </td>
|
|
|
|
<td align='center'> <?= $codeGarantie ?> </td>
|
|
<td align='center'> <?= $libelleActe ?> </td>
|
|
<!--<td align='center'> <?= format_N($this->nettoyer($prestation['prixBase'])) ?></td>-->
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['valeurActe'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['fraisReel'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['montantTm'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['montantArembourser'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['depassement'])) ?></td>
|
|
|
|
<?php if($idEnteteFacture > '0'): ?>
|
|
<td><button class = "form-control " onClick="javascript:imprimerfactureselection('<?= $idEnteteFacture ?>');"><i class="fa fa-print" style="font-size:24px;color:green;margin-top:-6px;"></i></button></td>
|
|
<?php else: ?>
|
|
<td><button class = "form-control " onClick="javascript:imprimerfacturepartielle('<?= $idPrestationactes ?>','<?= $codeTypePrestation ?>');"><i class="fa fa-print" style="font-size:24px;color:blue;margin-top:-6px;"></i></button></td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="11" height="8"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<button class="sr-only" id="btn_facture_partielle" name="btn_facture_partielle" type="button" data-bs-toggle="modal" data-bs-target="#pop_facture_partielle" > </button>
|
|
|
|
<div class="modal fade" id="pop_facture_partielle" 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-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
<h4 class="modal-title"> <?= _("Imprimer la facture partielle...") ?> </h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div id="div_facture_partielle">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<button class="sr-only" id="btn_facture_selection" name="btn_facture_selection" type="button" data-bs-toggle="modal" data-bs-target="#pop_facture_selection" > </button>
|
|
|
|
<div class="modal fade" id="pop_facture_selection" 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-bs-dismiss="modal" onClick="javascript:facturepartielle();"> <?= _("Fermer") ?> </button>
|
|
<h4 class="modal-title"> <?= _("Imprimer la facture partielle des actes sélectionnés...") ?> </h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div id="div_facture_selection">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-bs-dismiss="modal" onClick="javascript:facturepartielle();"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<button type="button" class="sr-only" id="btn_imprimer_chambre" name="btn_imprimer_chambre" data-bs-toggle="modal" data-bs-target="#pop_imprimer_chambre" style='font-size:10pt;' > </button>
|
|
|
|
<div class="modal fade" id="pop_imprimer_chambre" role="dialog" data-bs-backdrop="static" data-bs-keyboard="false" >
|
|
<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-bs-dismiss="modal" onClick="facturepartielle();"> <?= _("Fermer") ?> </button>
|
|
<h4 class="modal-title"> <?= _("Imprimer...") ?> </h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<table class="table table-responsive table-condensed" style='font-size:11pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td style='font-size:13pt;'> <?= _("Le bon de prise en charge") ?> </td>
|
|
<td> </td>
|
|
<td > <input class = "form-control btn btn-danger" type="button" value="<?= _("Télécharger...") ?>" onClick="javascript:imprimer_bon_pec_hospitalisation();" style='font-size:11pt;' > </td>
|
|
</tr>
|
|
<tr style='background-color:white'>
|
|
<td colspan="3" height="20"></td>
|
|
</tr>
|
|
<tr>
|
|
<td style='font-size:13pt;'> <?= _("La facture d'hospitalisation") ?> </td>
|
|
<td> </td>
|
|
<td> <input class = "form-control btn btn-danger" type="button" value="<?= _("Télécharger...") ?>" onClick="javascript:imprimer_facture_hospitalisation();" style='font-size:11pt;' > </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-bs-dismiss="modal" onClick="facturepartielle();"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
<div id="div_export_a">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|