radiantprestation/Vue/Ajaxfacturatioseancesea/index.php

186 lines
11 KiB
PHP

<div id="div_facturation_seance">
<?php
$facture = $this->nettoyer($prescription['facture']);
$nbRestantOld = $this->nettoyer($prescription['nbRestantOld']);
$codeActeSeance = $this->nettoyer($prescription['codeActeSeance']);
$numeroBonSeance = $this->nettoyer($prescription['numeroBonSeance']);
$_SESSION['p_numeroBonSeance_C'] = $numeroBonSeance;
$codeGestionBon = $this->nettoyer($prescription['codeGestionBon']);
if( isset($_SESSION['p_actesHarmonises']) && ($_SESSION['p_actesHarmonises']=="1") )
{
$actesHarmonises = true;
}
else
{
$actesHarmonises = false;
}
$controlerPlafondAdherent = ($_SESSION['p_controlerPlafondAdherent']>0);
$controlerPlafondBeneficiaire = ($_SESSION['p_controlerPlafondBeneficiaire']>0);
?>
<div id="content">
<?php include 'flexcode/include/global.php'; ?>
</div>
<input class="sr-only" type="number" id="numeroBonSeance_info" name="numeroBonSeance_info" value="<?= $numeroBonSeance ?>" >
<?php if($codeGestionBon=="0") : ?>
<button type="button" class="form-control btn btn-primary" data-toggle="modal" data-target="#popInitSession" style='font-size:10pt;' > <?= _("Modifier le bon...") ?> </button>
<?php endif; ?>
<input class="sr-only" type="text" id="codeTypePrestation" name="codeTypePrestation" value="SEA">
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="15%" ><?= _("T M") ?></td>
<td width="20%" > <input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="number" id="tauxCouverture" name="tauxCouverture" value="<?= $_SESSION['p_tm_C'] ?>" readonly ></td>
<td width="15%" align="center"> <?= _("Acte") ?> </td>
<td colspan="3">
<div id="listeacte">
<?php if($actesHarmonises) : ?>
<SELECT class="form-control" id="codeActe" NAME="codeActe" required onChange="javascript:ajaxprixseancesea();" style='font-size:10pt;' required disabled >
<?php liste_options($acte, $codeActeSeance); ?>
</SELECT>
<?php else: ?>
<SELECT class="form-control" id="codeActe" NAME="codeActe" required onChange="javascript:ajaxprixseancesea();" style='font-size:10pt;' required autofocus >
<?php liste_options($acte, $codeActeSeance); ?>
</SELECT>
<?php endif; ?>
</div>
</td>
</tr>
</tbody>
</table>
<div id="infosacte" style='font-size:10pt;'>
<input class="sr-only" type="number" id="prixActe" name="prixActe" value="<?= $this->nettoyer($prescription['valeurActeSeance']) ?>" >
<input class="sr-only" type="number" id="valeurActe" name="valeurActe" value="<?= $this->nettoyer($prescription['valeurActeSeance']) ?>" >
<input class="sr-only" type="number" id="aRembourser" name="aRembourser" value="<?= $this->nettoyer($prescription['montantArembourserSeance']) ?>" >
<input class="sr-only" type="number" id="totalActe" name="totalActe" value="<?= $this->nettoyer($prescription['fraisReelSeance']) ?>" >
<input class="sr-only" type="number" id="fraisRetenuSeance" name="fraisRetenuSeance" value="<?= $this->nettoyer($prescription['fraisRetenuSeance']) ?>" >
<input class="sr-only" type="text" id="cout" name="cout" value="<?= $this->nettoyer($prescription['fraisReelSeance']) ?>" >
<input class="sr-only" type="number" id="montantTm" name="montantTm" value="<?= $this->nettoyer($prescription['montantTmSeance']) ?>" >
<input class="sr-only" type="text" id="cout_f" name="cout_f" value="<?= format_N($this->nettoyer($prescription['fraisReelSeance'])) ?>" >
<input class="sr-only" type="text" id="montantTm_f" name="montantTm_f" value="<?= format_N($this->nettoyer($prescription['montantTmSeance'])) ?>" >
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="15%" > <?= _("Valeur") ?> </td>
<td width="20%" > <input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="text" value="<?= format_N($this->nettoyer($prescription['valeurActeSeance'])) ?>" readonly> </td>
<td width="15%" align="center" > <?= _("Quantité") ?> </td>
<td width="15%" >
<input class="form-control" id="quantiteSeance" name="quantiteSeance" type="number" value="<?= $this->nettoyer($prescription['quantiteSeance']) ?>" style="text-align: center; font-size:10pt; '"
onBlur="javascript:ajaxprixseancesea();" >
</td>
<td width="15%" align="center"> <?= _("Total") ?> </td>
<td width="20%" > <input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="text" value="<?= format_N($this->nettoyer($prescription['fraisReelSeance'])) ?>" readonly ></td>
</tr>
<tr>
<td> <?= _("T M") ?> </td>
<td> <input id="montantTm_info" name="montantTm_info" class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="text" value="<?= format_N($this->nettoyer($prescription['montantTmSeance'])) ?>" readonly ></td>
<td align="center" > <?= _("A Remb") ?> </td>
<td > <input id="aRembourser_info" name="aRembourser_info" class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="text" value="<?= format_N($this->nettoyer($prescription['montantArembourserSeance'])) ?>" readonly ></td>
<td align="center" > <?= _("Feuille de soins") ?> </td>
<td align="center" style='font-size:10pt; background-color:blue;color:white;'> <?= $prescription['numeroBonSeance'] ?> </td>
</tr>
</tbody>
</table>
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
<tbody>
<tr>
<td > <?= _("Dépas") ?> </td>
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($prescription['fraisExcluSeance'])) ?>" readonly style="text-align: center; font-size:12pt; color:red;" > </td>
<td align="center" > <?= _("Retenu") ?> </td>
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($prescription['fraisRetenuSeance'])) ?>" readonly style="text-align: center; font-size:12pt; color:blue;" > </td>
<td align="center" > <?= _("Part Assuré") ?> </td>
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($prescription['fraisAssure'])) ?>" readonly style="text-align: center; font-size:12pt; color:red;" > </td>
</tr>
</tbody>
</table>
<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>
<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>
</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):?>
<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>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>