232 lines
12 KiB
PHP
Executable File
232 lines
12 KiB
PHP
Executable File
<?php
|
|
$this->titre = "INTER-SANTE - Facture sans bon de PEC";
|
|
?>
|
|
|
|
<INPUT class="sr-only datepicker" TYPE="text" id="debutMoisDecompte" NAME="debutMoisDecompte" value="<?= dateLang($_SESSION['p_debutMoisDecompte']) ?>" readonly>
|
|
<INPUT class="sr-only datepicker" TYPE="text" id="finMoisDecompte" name="finMoisDecompte">
|
|
|
|
<div id="div_facture">
|
|
|
|
<INPUT class="sr-only datepicker" TYPE="text" id="dateFactureReelle" NAME="dateFactureReelle" value="<?= dateLang($this->nettoyer($facture['dateFacture'])) ?>" readonly>
|
|
<INPUT class="sr-only" TYPE="text" id="etatbeneficiaire_C" name="etatbeneficiaire_C" value="<?= $_SESSION['p_etatbeneficiaire_C'] ?>">
|
|
|
|
|
|
|
|
<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="codeMedecin" name="codeMedecin" value="<?= $this->nettoyer($facture['codeMedecin']) ?>" >
|
|
|
|
<input class="sr-only" type="text" id="cout_f" name="cout_f" value="<?= format_N($this->nettoyer($facture['fraisReel'])) ?>" >
|
|
<input class="sr-only" type="text" id="montantTm_f" name="montantTm_f" value="<?= format_N($this->nettoyer($facture['montantTm'])) ?>" >
|
|
|
|
<input style='text-align:center; font-size:9pt;' class="form-control" type="text"
|
|
value= "Informations sur la facture sans bon de PEC" readonly >
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:9pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="8%" > <?= _("Frais") ?> </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="7%" 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="7%" 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="7%" 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['fraisExclu'])) ?>" readonly ></td>
|
|
|
|
<td width="7%" 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> <?= _("Médecin") ?> </td>
|
|
<td colspan="3">
|
|
<button type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popRechercheMedecin" style='font-size:9pt;' ><span id="nomMedecin" name="nomMedecin"> <?= _("Rechercher un Médecin...") ?> </span></button>
|
|
</td>
|
|
|
|
|
|
<td align="center" > <?= _("No Bon") ?> </td>
|
|
<td><INPUT class="form-control" style='font-size:9pt;' TYPE="text" id="numeroBon" NAME="numeroBon" value="<?= $this->nettoyer($facture['numeroBon']) ?>" ></td>
|
|
|
|
<td align="center" > Date </td>
|
|
<td><INPUT style='font-size:9pt;' class="form-control datepicker" TYPE="text" id="dateFacture" NAME="dateFacture" value="<?= dateLang($this->nettoyer($facture['dateFacture'])) ?>" required AUTOCOMPLETE="OFF" ></td>
|
|
|
|
<td align="center"> Hospit </td>
|
|
<td>
|
|
<SELECT class="form-control" id="hospitalisation" NAME="hospitalisation" style='font-size:9pt;' onChange="javascript:valider_facture_sans_bon_temp();">
|
|
<?php liste_options($ouinonhospit, $facture['hospitalisation'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<tr>
|
|
|
|
<tr>
|
|
<td> Dr </td>
|
|
<td colspan="9"><INPUT class="form-control" TYPE="text" id="medecinManquant" NAME="medecinManquant" style='font-size:9pt;' value="<?= $this->nettoyer($facture['medecinManquant']) ?>" > </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
<td > Observat </td>
|
|
<td colspan="3"><INPUT style='font-size:9pt;' id="observations" name="observations" class="form-control" TYPE="text" value="<?= $this->nettoyer($facture['observations']) ?>" ></td>
|
|
|
|
<td align="center"> <?= _("T M") ?> </td>
|
|
<td>
|
|
<INPUT id="tmFacture" name="tmFacture" style='font-size:9pt; text-align:center; color:red;' class="form-control" type="number" value="<?= $this->nettoyer($facture['tm']) ?>"
|
|
onChange="ajax_maj_tm_facture(this.value, this);">
|
|
</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_sans_bon_temp();" style='font-size:9pt;' > </td>
|
|
<tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="content">
|
|
<?php include 'flexcode/include/global.php'; ?>
|
|
</div>
|
|
|
|
<div id ="div_wait">
|
|
</div>
|
|
|
|
<div id="div_prestations">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align:center"> <?= _("Actes") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Valeurs") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Frais") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("T M") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("A Remb") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($prestations as $prestation):
|
|
$idPrestation = $this->nettoyer($prestation['id']);
|
|
$libelleActe = $this->echapper($prestation['libelleActe']);
|
|
$valeurActe = $this->nettoyer($prestation['valeurActe']);
|
|
?>
|
|
<tr valign="top">
|
|
|
|
<td align='center'> <?= $this->dechapper($libelleActe) ?> </td>
|
|
|
|
<td align='center'>
|
|
<INPUT style='text-align:center; font-size:9pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($prestation['valeurActe']) ?>"
|
|
onChange="ajax_maj_prix_acte('<?=$idPrestation?>', this.value, this);">
|
|
</td>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['fraisReel'])) ?> </td>
|
|
<td align='center' style='color:red;'> <?= format_N($this->nettoyer($prestation['montantTm'])) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['montantArembourser'])) ?> </td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
|
|
<thead>
|
|
<tr>
|
|
<th rowspan="2" style="text-align:center"> <?= _("Limites de la famille : Garanties") ?> </th>
|
|
<th rowspan="2" style="text-align:center"> <?= _("Limites") ?> </th>
|
|
<th rowspan="2" style="text-align:center"> <?= _("Solde Ant") ?> </th>
|
|
<th colspan="2" style="text-align:center;background-color:blue;color:white;"> <?= _("Nouvelles Consommations") ?> </th>
|
|
<th rowspan="2" style="text-align:center;background-color:red;color:white;"> <?= _("Dépassement") ?> </th>
|
|
<th rowspan="2" style="text-align:center"> <?= _("Retenu") ?> </th>
|
|
<th rowspan="2" style="text-align:center"> <?= _("Nouv Solde") ?> </th>
|
|
<th rowspan="2" style="text-align:center"> <?= _("Par tête?") ?> </th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th style="text-align:center;background-color:blue;color:white;" > <?= _("Garanties") ?> </th>
|
|
<th style="text-align:center;background-color:blue;color:white;" > <?= _("Sous Gar") ?> </th>
|
|
</tr>
|
|
|
|
</thead>
|
|
<tbody>
|
|
|
|
<?php foreach ($garantieadherent_temp as $garantieadherent):
|
|
$champApplication = $this->nettoyer($garantieadherent['champApplication']);
|
|
?>
|
|
<tr valign="top">
|
|
<td align='center'> <?= $this->nettoyer($garantieadherent['garantie'])?> </td>
|
|
<td align='center'><?= format_N($this->nettoyer($garantieadherent['plafond'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($garantieadherent['soldeOld'])) ?></td>
|
|
<td align='center' style='background-color:blue;color:white;'><?= format_N($this->nettoyer($garantieadherent['consommationNew'])) ?></td>
|
|
<td align='center' style='background-color:blue;color:white;'><?= format_N($this->nettoyer($garantieadherent['consommationSousGarantie'])) ?></td>
|
|
<td align='center' style='background-color:red;color:white;'><?= format_N($this->nettoyer($garantieadherent['fraisExclu'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($garantieadherent['fraisRetenu'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($garantieadherent['soldeNew'])) ?></td>
|
|
|
|
<?php if($champApplication=='1'): ?>
|
|
<td align='center'> <input type="checkbox" checked value="<?php echo $champApplication ; ?>" disabled ></td>
|
|
<?php else: ?>
|
|
<td align='center'> <input type="checkbox" value="<?php echo $champApplication ; ?>" disabled ></td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="div_fraisExclu">
|
|
<input class="sr-only" type="text" id="fraisExclu" name="fraisExclu" value="<?= $this->nettoyer($facture['fraisExclu']) ?>" >
|
|
</div>
|
|
|
|
<div id="content">
|
|
<?php include 'flexcode/include/global.php'; ?>
|
|
</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 class="modal fade" id="popRechercheMedecin" 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"><?= _("Rechercher un Médecin...") ?></h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div id="div_listemedecins" onkeypress="javascript:ctrlkeypress_medecin(event);">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:9pt;'>
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align:center" width="15%" > Code </th>
|
|
<th width="50%" style="text-align:center" > <?= _("Nom contenant...") ?> </th>
|
|
<th style="text-align:center" > <?= _("Spécialité") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><input type="text" class="form-control" id="noOrdreMedecin" name="noOrdreMedecin" autofocus style='font-size:9pt;' ></td>
|
|
<td><input type="text" class="form-control" id="nomsearch" name="nomsearch" autofocus style='font-size:9pt;' ></td>
|
|
<td><input type="button" class = "form-control btn btn-info" style='font-size:9pt;' value="<?= _("Rechercher...") ?>" onclick="javascript:afficher_pop_recherche_medecin();" /></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>
|