329 lines
18 KiB
PHP
Executable File
329 lines
18 KiB
PHP
Executable File
<?php
|
|
// $this->titre = "INTER-SANTE - Facture classique";
|
|
|
|
$idDossierClassique = $facture['idDossierClassique'];
|
|
$hospitalisation = $facture['hospitalisation'];
|
|
$dateConsultation = $dossier['dateConsultation'];
|
|
$codePrestataireConsultation = $dossier['codePrestataire'];
|
|
$codePrestataire = $dossier['codePrestataire'];
|
|
|
|
$controlerPlafondAdherent = ($_SESSION['controlerPlafondAdherent']>0);
|
|
$controlerPlafondBeneficiaire = ($_SESSION['controlerPlafondBeneficiaire']>0);
|
|
|
|
$numeroBeneficiaire = $dossier['numeroBeneficiaire'];
|
|
$nomPatient = $dossier['beneficiaire'];
|
|
$prestataireConsultation = $dossier['prestataireConsultation'];
|
|
|
|
$ndFacture = $dossier['ndFacture'];
|
|
?>
|
|
|
|
<input style='text-align:center; font-size:10pt;' class="form-control" type="text" value= "<?= _("Hors tiers payant") . " => " . _("ID Dossier") . " : " . $idDossierClassique
|
|
. " => " . _("Patient") . " : " . $nomPatient . " ( " . $numeroBeneficiaire . " )"; ?>" readonly >
|
|
|
|
|
|
<input class="sr-only" type="text" id="idDossierClassique" name="idDossierClassique" value="<?= $idDossierClassique ?>" >
|
|
<input class="sr-only" type="text" id="hospitalisation" name="hospitalisation" value="<?= $hospitalisation ?>" >
|
|
<input class="sr-only" type="text" id="dateConsultation" name="dateConsultation" value="<?= $dateConsultation ?>" >
|
|
<input class="sr-only" type="text" id="codePrestataireConsultation" name="codePrestataireConsultation" value="<?= $codePrestataireConsultation ?>" >
|
|
|
|
|
|
<div id="div_facture">
|
|
|
|
<div id="div_entete_facture">
|
|
|
|
<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 class="sr-only" type="text" id="codePrestataire" name="codePrestataire" value="<?= $this->nettoyer($dossier['codePrestataire']) ?>" >
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:8pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="6%" > <?= _("Réclamé") ?> </td>
|
|
<td><INPUT style='font-size:8pt; 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:8pt; color:red; text-align:center;' id="v_rejet" name="v_rejet" 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:8pt; color:red; text-align:center;' id="v_exclu" name="v_exclu" class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($facture['fraisExclu'])) ?>" readonly ></td>
|
|
|
|
<td width="6%" align="center" > <?= _("T M") ?> </td>
|
|
<td><INPUT style='font-size:8pt; 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:8pt; 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:8pt; 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:8pt; 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:8pt;' TYPE="text" id="numeroFacture" NAME="numeroFacture" onChange="javascript:ajaxtmfacturerbcl();" value="<?= $this->nettoyer($facture['numeroFacture']) ?>" autofocus ></td>
|
|
|
|
<td align="center" > <?= _("Prestataire") ?> </td>
|
|
<td colspan="5">
|
|
<?php if ($_SESSION['prestataire_C']>" "): ?>
|
|
<button id="button_popRecherchePrestataire" NAME="button_popRecherchePrestataire" type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popRecherchePrestataire" style='font-size:10pt;' style='font-size:10pt;' ><span id="nomPrestataire" name="nomPrestataire"> <?= $_SESSION['prestataire_C'] ?> </span></button>
|
|
<?php else : ?>
|
|
<button id="button_popRecherchePrestataire" NAME="button_popRecherchePrestataire" type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popRecherchePrestataire" style='font-size:10pt;' ><span id="nomPrestataire" name="nomPrestataire"> <?= $prestataireConsultation ?> </span></button>
|
|
<?php endif; ?>
|
|
|
|
<INPUT class="sr-only" TYPE="text" id="prestataire" NAME="prestataire" value="<?= $prestataireConsultation ?>" >
|
|
</td>
|
|
|
|
<td align="center" > <?= _("Date Fact") ?> </td>
|
|
<td colspan="3">
|
|
<INPUT style='font-size:8pt; text-align:center;' class="form-control datepicker" TYPE="text" id="dateFacture" NAME="dateFacture" value="<?= dateLang($this->nettoyer($facture['dateFacture'])) ?>" required AUTOCOMPLETE="OFF" onChange="enregistrerfacture_classique_date();" >
|
|
</td>
|
|
|
|
<td align="center"> Hospit </td>
|
|
|
|
<?php if($hospitalisation=='1'): ?>
|
|
<td><INPUT class="form-control" style='font-size:8pt; text-align:center;' TYPE="text" value="Oui" readonly ></td>
|
|
<?php else: ?>
|
|
<td><INPUT class="form-control" style='font-size:8pt; text-align:center;' TYPE="text" value="Non" readonly ></td>
|
|
<?php endif; ?>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
<td> <?= _("T M") ?> </td>
|
|
<td>
|
|
<div id="div_tm">
|
|
<INPUT id="tmFacture" name="tmFacture" style='font-size:8pt; text-align:center; color:red;' class="form-control" type="number" value="<?= $this->nettoyer($facture['tm']) ?>"
|
|
onChange="ajax_maj_tm_facture(this.value, this);">
|
|
</div>
|
|
</td>
|
|
|
|
<td align="center" > Observat </td>
|
|
<td colspan="5"><INPUT style='font-size:8pt;' id="observations" name="observations" class="form-control" TYPE="text" value="<?= $this->nettoyer($facture['observations']) ?>" onChange="enregistrerfacture_classique_date();"></td>
|
|
|
|
<td> </td>
|
|
<td colspan="3"> <input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer Entête...") ?>" onClick="javascript:valider_facture_classique_temp();" style='font-size:10pt;' > </td>
|
|
|
|
<td align="center"> <?= _("Nb Fact") ?> </td>
|
|
<td><INPUT style='font-size:8pt; color:blue; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($ndFacture) ?>" readonly ></td>
|
|
<tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="content">
|
|
<?php include 'flexcode/include/global.php'; ?>
|
|
</div>
|
|
|
|
<div id ="div_wait">
|
|
</div>
|
|
|
|
<table class="table table-bordered table-condensed table-responsive" style="font-size:8pt;">
|
|
<tbody>
|
|
<tr>
|
|
<?php if($controlerPlafondAdherent): ?>
|
|
<td width="8%"> <?= _("Limite Fam") ?> </td>
|
|
<td><INPUT style='text-align:center; background-color:blue;color:white; font-size:8pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['plafondAdherent']) ?>" readonly ></td>
|
|
|
|
<td align="center"> <?= _("Anc Solde") ?> </td>
|
|
<td><INPUT style='text-align:center; background-color:rgba(255, 0, 127);color:white; font-size:8pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['soldeAdherentOld']) ?>" readonly ></td>
|
|
|
|
<td align="center"> <?= _("Nv Solde") ?> </td>
|
|
<td> <INPUT style='text-align:center; background-color:green;color:white; font-size:8pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['soldeAdherentNew']) ?>" readonly ></td>
|
|
<?php endif; ?>
|
|
|
|
<?php if($controlerPlafondBeneficiaire): ?>
|
|
<td align="center" width="8%"> <?= _("Limite Indiv") ?> </td>
|
|
<td><INPUT style='text-align:center; background-color:blue;color:white; font-size:8pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['plafondBeneficiaire']) ?>" readonly ></td>
|
|
|
|
<td align="center"> <?= _("Anc Solde") ?> </td>
|
|
<td><INPUT style='text-align:center; background-color:rgba(255, 0, 127);color:white; font-size:8pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['soldeBeneficiaireOld']) ?>" readonly ></td>
|
|
|
|
<td align="center"> <?= _("Nv Solde") ?> </td>
|
|
<td><INPUT style='text-align:center; background-color:green;color:white; font-size:8pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['soldeBeneficiaireNew']) ?>" readonly ></td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<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="ajax_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="ajax_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 ?>");'>-->
|
|
|
|
<SELECT class="form-control" id="codeMotifRejetPop" NAME="codeMotifRejetPop" required AUTOCOMPLETE="OFF" style='font-size:10pt;' onChange='javascript:enregistrer_motif_rejet_classique(<?= $idPrestation ?>,this.value);'>
|
|
<?php liste_options($motifrejets, $codeMotifRejet,true); ?>
|
|
</SELECT>
|
|
<?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="ajax_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 ?>");'>-->
|
|
|
|
<SELECT class="form-control" id="codeMotifExclusionPop" NAME="codeMotifExclusionPop" required AUTOCOMPLETE="OFF" style='font-size:10pt;' onChange='javascript:enregistrer_motif_exclusion_classique(<?= $idPrestation ?>,this.value);'>
|
|
<?php liste_options($motifecxlusions, $codeMotifExclusion,true); ?>
|
|
</SELECT>
|
|
|
|
<?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="ajax_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>
|
|
|
|
<div id="div_fraisDepassement">
|
|
<input class="sr-only" type="text" id="depassementLimite" name="depassementLimite" value="<?= $this->nettoyer($facture['depassementLimite']) ?>" >
|
|
</div>
|
|
|
|
<div id="loadingDiv" style="display: none">
|
|
<div class="ajax-mask"><div class="loading"><img src="Bootstrap/images/loading-spinner-grey.gif"/> <?= _("Veuillez patienter...") ?> </span></div></div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal fade" id="popRecherchePrestataire" 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"> <?= _("Fermer") ?> </button>
|
|
<h4 class="modal-title"> <?= _("Rechercher un prestataire...") ?> </h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div id="div_listeprestataires" onkeypress="javascript:ctrlkeypress_prestataire_rbcl(event);">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:10pt;'>
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align:center" width="15%" > Code </th>
|
|
<th width="50%" style="text-align:center" > <?= _("Nom contenant...") ?> </th>
|
|
<th colspan="2" style="text-align:center" > Type </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><input type="text" class="form-control" id="codesearch" name="codesearch" autofocus style='font-size:10pt;' ></td>
|
|
<td><input type="text" class="form-control" id="nomsearch" name="nomsearch" autofocus style='font-size:10pt;' ></td>
|
|
<td><input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Rechercher...") ?>" onclick="javascript:afficher_pop_recherche_prestataire_rbcl();" /></td>
|
|
<td><input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Ré-initialiser...") ?>" onclick="javascript:reinitialiser_prestataire(); " /></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button id="close_pop" name="close_pop" type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="div_motif_rejet">
|
|
</div>
|
|
|
|
<div id="div_motif_exclusion">
|
|
</div>
|
|
|
|
<div id="div_detail_rejet">
|
|
</div>
|