prestation/Vue/Facturepartielle/index.php
2025-12-01 18:54:33 +00:00

286 lines
12 KiB
PHP

<?php
$this->titre = "INTER-SANTE - Facturation Partielle";
$actVisible = $_SESSION['p_actVisible'];
?>
<script type="text/javascript">
</script>
<legend> <?= _("Impression des reçus de prestation") ?> </legend>
<input class="sr-only" id="nbreSelec" name="nbreSelec" type="text" value= "<?= $nbreSelec ?>" >
<input class="sr-only" id="nomForm" name="nomForm" type="text" value= "facturepartielle" >
<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>
<div id="div_legende_couleur" style="width:100%; margin: 5px;">
<table class="table-responsive" style="width:50%; margin:auto;">
<tbody>
<tr>
<td style="font-weight:bold; text-align:left; background-color:#f8f8ff; text-decoration-line: underline;"> <?= _("Légende").":"; ?></td>
<td style="font-weight:bold; background-color:#f8f8ff; text-align:right;"> <?= _("Attente réponse:") ?></td>
<td width="4%" style="background-color:yellow"></td>
<td width="2%" style="background-color:#f8f8ff;"></td>
<td style="font-weight:bold; background-color:#f8f8ff; text-align:right;"><?= _("Accord assureur:") ?></td>
<td width="4%" style="background-color: #00ff00"></td>
<td width="2%" style="background-color:#f8f8ff;"></td>
<td style="font-weight:bold; background-color:#f8f8ff; text-align:right;"><?= _("Non garanti / refus:") ?></td>
<td width="4%" style="background-color: red;"></td>
</tr>
</tbody>
</table>
</div>
<table class="table table-responsive table-condensed" style='font-size:15pt;' >
<tbody>
<tr>
<td align="center"><?= _("Non-imprimés") ?> </td>
<td width="13%">
<input class = "form-control btn btn-info" style='font-size:10pt;' type="button" value="Sélectionner tout"
onClick="selectionner_tous_actes_a_facturer();">
</td>
<td width="13%">
<input class = "form-control btn btn-warning" style='font-size:10pt;' type="button" value="Annuler sélection"
onClick="annuler_selection_actes_a_facturer();">
</td>
<td width="13%">
<input class = "form-control btn btn-primary" style='font-size:10pt;' type="button" value="Imprimer sélection"
onClick="javascript:imprimerfactureselection('0');">
</td>
</tr>
</tbody>
</table>
<div id="div_liste_actes">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th></th>
<th width="10%" style="text-align:center"> Date </th>
<th colspan="2" style="text-align:center"> <?= _("Acte") ?> </th>
<th width="5%" style="text-align:center" > <?= _("Accord") ?> </th>
<th width="15%" style="text-align:center" > <?= _("Médecin") ?> </th>
<!--<th width="7%" style="text-align:center"> <?= _("Base Remb.") ?> </th>-->
<th width="7%" style="text-align:center"> <?= _("Prix Unitaire") ?> </th>
<th width="3%" style="text-align:center"> <?= _("Qté") ?> </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):
$idPrestationactes = $this->nettoyer($prestation['id']);
$supprimable = $prestation['supprimable'];
$codeTypePrestation = $this->nettoyer($prestation['codeTypePrestation']);
$ententePrealable = $this->nettoyer($prestation['ententePrealable']);
$autorisation = $this->nettoyer($prestation['autorisation']);
$numeroFeuilleMaladie = $this->nettoyer($prestation['numeroFeuilleMaladie']);
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;
}
$idProlongation = $this->nettoyer($prestation['idProlongation']);
if($idProlongation > "0"){
$libelleActe = $libelleActe." - "."PROROGATION";
}
$prixBase = $prestation['prixBase'];
if ($prixBase == "0"){
$prixBase = $prestation['valeurActe'];
}
?>
<tr valign="top">
<?php if($codeTypePrestation=='HOSP'): ?>
<td></td>
<?php else: ?>
<?php if($prestation['choix']=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $prestation['choix']; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};select_prestatation_a_facturer(this.value, <?= $idPrestationactes ?>);"></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $prestation['choix']; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};select_prestatation_a_facturer(this.value, <?= $idPrestationactes ?>);"></td>
<?php endif; ?>
<?php endif; ?>
<td align='center'> <?= dateheureLang($this->nettoyer($prestation['dateSysteme'])) ?> </td>
<td align='center'> <?= $codeGarantie ?> </td>
<td align='center'> <?= $libelleActe ?> </td>
<?php if($ententePrealable<>"0"): ?>
<?php if($ententePrealable=='2'): ?>
<td align='center' style="background-color: yellow;"> <input type="checkbox" checked disabled> </td>
<?php elseif($ententePrealable=='1'): ?>
<td align='center' style="background-color: #00ff00;"> <input type="checkbox" checked disabled> </td>
<?php elseif($ententePrealable=='9'): ?>
<td align='center' style="background-color: red;color:white;"> <input type="checkbox" checked disabled> </td>
<?php else: ?>
<td align='center'> <input type="checkbox" checked disabled> </td>
<?php endif; ?>
<?php else: ?>
<td align='center' > <input type="checkbox" disabled></td>
<?php endif; ?>
<td align='center'> <?= $this->nettoyer($prestation['medecinActe']) ?> </td>
<!--<td align='center'> <?= format_N($prixBase) ?></td>-->
<td align='center'> <?= format_N($prestation['valeurActe']) ?></td>
<td align='center'> <?= $this->nettoyer($prestation['quantite']) ?></td>
<td align='center'> <?= format_N($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($prestation['choix']=='0'): ?>
<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 else: ?>
<td></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
<tr style='background-color:white'>
<td colspan="13" height="8"></td>
</tr>
</tbody>
</table>
</div>
<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>
<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_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" onClick="javascript:facturepartielle();"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Imprimer le reçu du soin...") ?> </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" onClick="javascript:facturepartielle();"> <?= _("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 le reçu des soins...") ?> </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>
<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>