radiantproduction/Vue/Factureclassique/index.php

212 lines
11 KiB
PHP

<?php
$this->titre = "INTER-SANTE - Facture classique";
$idDossierClassique = $facture['idDossierClassique'];
$hospitalisation = $facture['hospitalisation'];
$dateConsultation = $dossier['dateConsultation'];
$controlerPlafondAdherent = ($_SESSION['controlerPlafondAdherent']>0);
$controlerPlafondBeneficiaire = ($_SESSION['controlerPlafondBeneficiaire']>0);
?>
<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 style='text-align:center; font-size:11pt;' class="form-control" type="text"
value= "Informations sur la facture à rembourser hors tiers payant => Date Consultation : <?= dateLang($dateConsultation) ?>" readonly >
<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']) ?>" >
<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> <?= _("Prestataire") ?> </td>
<td colspan="3"><INPUT style='font-size:9pt;' class="form-control" TYPE="text" id="prestataire" NAME="prestataire" value="<?= $this->nettoyer($facture['prestataire']) ?>" autofocus ></td>
<td align="center" > <?= _("No Fact") ?> </td>
<td><INPUT class="form-control" style='font-size:9pt;' TYPE="text" id="numeroFacture" NAME="numeroFacture" value="<?= $this->nettoyer($facture['numeroFacture']) ?>" ></td>
<td align="center" > <?= _("Date Fact") ?> </td>
<td><INPUT style='font-size:9pt; text-align:center;' class="form-control datepicker" TYPE="text" id="dateFacture" NAME="dateFacture" value="<?= dateLang($this->nettoyer($facture['dateFacture'])) ?>" required ></td>
<td align="center"> Hospit </td>
<?php if($hospitalisation=='1'): ?>
<td><INPUT class="form-control" style='font-size:9pt; text-align:center;' TYPE="text" value="Oui" readonly ></td>
<?php else: ?>
<td><INPUT class="form-control" style='font-size:9pt; text-align:center;' TYPE="text" value="Non" readonly ></td>
<?php endif; ?>
<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_classique_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>
<table class="table table-bordered table-condensed table-responsive" style="font-size:9pt;">
<tbody>
<tr>
<?php if($controlerPlafondAdherent): ?>
<td width="8%"> <?= _("Limite Fam") ?> </td>
<td><INPUT style='text-align:center; background-color:blue;color:white; font-size:9pt;' 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:9pt;' 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:9pt;' 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:9pt;' 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:9pt;' 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:9pt;' 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-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>