205 lines
10 KiB
PHP
Executable File
205 lines
10 KiB
PHP
Executable File
<?php
|
|
// $this->titre = "INTER-SANTE - Facture classique : Consultation";
|
|
|
|
$idDossierClassique = $_SESSION['idDossierClassique'] ;
|
|
$numeroFacture = $this->nettoyer($facture['numeroFacture']);
|
|
$numeroBeneficiaire = $dossier['numeroBeneficiaire'];
|
|
$nomPatient = $dossier['beneficiaire'];
|
|
?>
|
|
|
|
|
|
<div id="div_entete_facture">
|
|
|
|
<input class="sr-only" type="text" id="regle" name="regle" value="<?= $this->nettoyer($facture['regle']) ?>" >
|
|
<input class="sr-only" type="text" id="prixActe" name="prixActe" value="<?= $this->nettoyer($facture['fraisRetenu']) ?>" >
|
|
<input class="sr-only" type="text" id="cout" name="cout" value="<?= $this->nettoyer($facture['fraisReel']) ?>" >
|
|
<input class="sr-only" type="text" id="montantTm" name="montantTm" value="<?= $this->nettoyer($facture['montantTm']) ?>" >
|
|
<input class="sr-only" type="text" id="montantArembourser" name="montantArembourser" value="<?= $this->nettoyer($facture['montantArembourser']) ?>" >
|
|
|
|
<input style='text-align:center; font-size:10pt;' class="form-control" type="text" value= "<?= _("Hors tiers payant") . " => " . _("ID Dossier") . " : " . $idDossierClassique
|
|
. " => " . _("Patient") . " : " . $nomPatient . " ( " . $numeroBeneficiaire . " )" . " => " . _("No Fact") . " : " . $numeroFacture ?>" readonly >
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:9pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="6%" > <?= _("Réclamé") ?> </td>
|
|
<td><INPUT style='font-size:9pt; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($facture['fraisReel'])) ?>" readonly ></td>
|
|
|
|
<td width="6%" align="center" > <?= _("Rejet") ?> </td>
|
|
<td><INPUT style='font-size:9pt; color:red; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($facture['montantRejete'])) ?>" readonly ></td>
|
|
|
|
<td width="6%" align="center" > <?= _("Exclu") ?> </td>
|
|
<td><INPUT style='font-size:9pt; color:red; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($facture['exclusion'])) ?>" readonly ></td>
|
|
|
|
<td width="6%" align="center" > <?= _("T M") ?> </td>
|
|
<td><INPUT style='font-size:9pt; color:red; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($facture['montantTm'])) ?>" readonly ></td>
|
|
|
|
<td width="6%" align="center" > <?= _("A Remb") ?> </td>
|
|
<td> <INPUT style='font-size:9pt; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($facture['montantArembourser'])) ?>" readonly ></td>
|
|
|
|
<td width="6%" align="center" > <?= _("Dépas") ?> </td>
|
|
<td><INPUT style='font-size:9pt; color:red; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($facture['depassementLimite'])) ?>" readonly ></td>
|
|
|
|
<td width="6%" align="center"> <?= _("Retenu") ?> </td>
|
|
<td><INPUT style='font-size:9pt; color:blue; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($facture['fraisRetenu'])) ?>" readonly ></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> <?= _("No Fact") ?> </td>
|
|
<td><INPUT class="form-control" style='font-size:9pt; text-align:center;' TYPE="text" id="numeroFacture" NAME="numeroFacture" value="<?= $this->nettoyer($facture['numeroFacture']) ?>" readonly ></td>
|
|
|
|
<td align="center" > <?= _("Prestataire") ?> </td>
|
|
<td colspan="5">
|
|
<SELECT style="font-size:10pt;" class="form-control selectpicker" data-live-search="true" id="prestataire" NAME="prestataire" >
|
|
<?php liste_options($prestataire,$this->nettoyer($facture['prestataire']),true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td align="center" > <?= _("Date Fact") ?> </td>
|
|
<td colspan="3">
|
|
<INPUT style='font-size:10pt; text-align:center;' class="form-control datepicker" TYPE="text" id="dateFacture" NAME="dateFacture" value="<?= dateLang($this->nettoyer($facture['dateFacture'])) ?>" >
|
|
</td>
|
|
|
|
<td align="center" > Hospit ?</td>
|
|
<td>
|
|
<SELECT class="form-control" id="hospitalisation" NAME="hospitalisation" style='font-size:10pt;' >
|
|
<?php liste_options($ouinonhospit, $this->nettoyer($facture['hospitalisation']),true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<tr>
|
|
|
|
<tr>
|
|
<td> <?= _("T M") . " ( % ) " ?> </td>
|
|
<td>
|
|
<INPUT id="tmFacture" name="tmFacture" style='font-size:10pt; text-align:center; color:red;' class="form-control" type="number" value="<?= $this->nettoyer($facture['tm']) ?>" readonly>
|
|
</td>
|
|
|
|
<td align="center" > Observat </td>
|
|
<td colspan="9"><INPUT style='font-size:10pt;' id="observations" name="observations" class="form-control" TYPE="text" value="<?= $this->nettoyer($facture['observations']) ?>"></td>
|
|
|
|
|
|
<td colspan="2" >
|
|
<input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:modifier_facture_classique('<?= $_SESSION['idFactureCourant']; ?>');" style='font-size:10pt;' >
|
|
</td>
|
|
|
|
<tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div id ="div_wait">
|
|
</div>
|
|
|
|
<div id="div_prestations">
|
|
<table class="table table-striped table-bordered table-condensed table-responsive" style="font-size:8pt;">
|
|
<thead>
|
|
<tr>
|
|
<th rowspan="2" style="text-align:center"> <?= _("Actes") ?> </th>
|
|
<th rowspan="2" colspan="2" style="text-align:center"> <?= _("Réclamé") ?> </th>
|
|
<th colspan="3" style="text-align:center"> <?= _("Rejet") ?> </th>
|
|
<th colspan="3" style="text-align:center"> <?= _("Exlusion") ?> </th>
|
|
<th colspan="2" style="text-align:center"> <?= _("Ticket Mod") ?> </th>
|
|
<th rowspan="2" style="text-align:center"> <?= _("A Remb") ?> </th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th style="text-align:center"> <?= _("Valeur") ?> </th>
|
|
<th style="text-align:center"> <?= _("Motif") ?> </th>
|
|
<th style="text-align:center"> <?= _("Obs") ?> </th>
|
|
|
|
<th style="text-align:center"> <?= _("Valeur") ?> </th>
|
|
<th style="text-align:center"> <?= _("Motif") ?> </th>
|
|
<th style="text-align:center"> <?= _("Obs") ?> </th>
|
|
|
|
<th style="text-align:center"> <?= _("Tx") ?> </th>
|
|
<th style="text-align:center"> <?= _("Valeur") ?> </th>
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($prestations as $prestation):
|
|
$idPrestation = $this->nettoyer($prestation['id']);
|
|
$libelleActe = $this->echapper($prestation['libelleActe']);
|
|
$valeurActe = $this->nettoyer($prestation['valeurActe']);
|
|
|
|
$montantRejete = $this->nettoyer($prestation['montantRejete']);
|
|
$fraisExclu = $this->nettoyer($prestation['fraisExclu']);
|
|
|
|
$codeMotifRejet = $this->nettoyer($prestation['codeMotifRejet']);
|
|
$codeMotifExclusion = $this->nettoyer($prestation['codeMotifExclusion']);
|
|
|
|
$libellemotifRejet = $this->nettoyer($prestation['libellemotifRejet']);
|
|
$libellemotifRejet = $this->echapper($libellemotifRejet);
|
|
|
|
$libelleMotifExclusion = $this->nettoyer($prestation['libelleMotifExclusion']);
|
|
$libelleMotifExclusion = $this->echapper($libelleMotifExclusion);
|
|
|
|
?>
|
|
<tr valign="top">
|
|
|
|
<td align='center' width="15%" > <?= $this->dechapper($libelleActe) ?> </td>
|
|
|
|
<td align='center' width="7%" >
|
|
<INPUT style='text-align:center; font-size:8pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($prestation['valeurActe']) ?>"
|
|
onChange="maj_prix_acte_classique('<?=$idPrestation?>', this.value, this);">
|
|
</td>
|
|
|
|
<td align='center' width="8%" > <?= format_N($this->nettoyer($prestation['fraisReel'])) ?> </td>
|
|
|
|
<td align='center' width="7%" >
|
|
<INPUT style='text-align:center; font-size:8pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($prestation['montantRejete']) ?>"
|
|
onChange="maj_montant_rejete('<?=$idPrestation?>', this.value, this);">
|
|
</td>
|
|
|
|
<td width="16%" align="center">
|
|
<?php if($montantRejete!='0'): ?>
|
|
<input style='text-align:center; font-size:8pt; background-color: yellow;' type="button" value="<?= $libellemotifRejet ?>" class="form-control"
|
|
onClick='javascript:init_maj_motif_rejet_rbcl(<?= $idPrestation ?>,"<?= $codeMotifRejet ?>", "<?= $libellemotifRejet ?>");'>
|
|
<?php endif; ?>
|
|
</td>
|
|
|
|
<td width="3%" align="center">
|
|
<?php if($montantRejete!='0'): ?>
|
|
<input style='text-align:center; font-size:8pt; background-color: yellow;' type="button" value="Obs" class="form-control"
|
|
onClick='javascript:init_maj_detail_rejet_rbcl(<?= $idPrestation ?>);'>
|
|
<?php endif; ?>
|
|
</td>
|
|
|
|
<td align='center' width="7%" >
|
|
<INPUT style='text-align:center; font-size:8pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($prestation['fraisExclu']) ?>"
|
|
onChange="maj_montant_exclu('<?=$idPrestation?>', this.value, this);">
|
|
</td>
|
|
|
|
<td width="16%" align="center">
|
|
<?php if($fraisExclu!='0'): ?>
|
|
<input style='text-align:center; font-size:8pt; background-color: red; color : white' type="button" value="<?= $libelleMotifExclusion ?>" class="form-control"
|
|
onClick='javascript:init_maj_motif_exclusion_rbcl(<?= $idPrestation ?>,"<?= $codeMotifExclusion ?>", "<?= $libelleMotifExclusion ?>");'>
|
|
<?php endif; ?>
|
|
</td>
|
|
|
|
<td width="3%" align="center">
|
|
<?php if($fraisExclu!='0'): ?>
|
|
<input style='text-align:center; font-size:8pt; background-color: red; color : white' type="button" value="Obs" class="form-control"
|
|
onClick='javascript:init_maj_detail_exclusion_rbcl(<?= $idPrestation ?>);'>
|
|
<?php endif; ?>
|
|
</td>
|
|
|
|
<td align='center' width="4%" >
|
|
<INPUT style='text-align:center; font-size:8pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($prestation['tm']) ?>"
|
|
onChange="maj_tm_acte_rbcl('<?=$idPrestation?>', this.value, this);">
|
|
</td>
|
|
|
|
<td align='center' style='color:red;' width="5%" > <?= format_N($this->nettoyer($prestation['montantTm'])) ?> </td>
|
|
|
|
<td align='center' width="8%" > <?= format_N($this->nettoyer($prestation['montantArembourser'])) ?> </td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
|