248 lines
14 KiB
PHP
Executable File
248 lines
14 KiB
PHP
Executable File
<?php $this->titre = "INTER-SANTE - Décompte";
|
|
$numeroDecompte = $reglement['numeroDecompte'];
|
|
$_SESSION['numeroDecompte_C'] = $numeroDecompte;
|
|
$idReglement = $_SESSION['idReglement_C'];
|
|
$userCourant = $_SESSION['login'];
|
|
$regle = $reglement['regle'];
|
|
$codeTypePrestataire = $reglement['codeTypePrestataire'];
|
|
$numeroBordereau = $reglement['numeroBordereau'];
|
|
|
|
if (est_anglophone())
|
|
{
|
|
$libellePeriode = $this->nettoyer($reglement['periodeEng']);
|
|
$etatdecompte = $this->nettoyer($reglement['etatdecompteEng']);
|
|
|
|
}
|
|
else
|
|
{
|
|
$libellePeriode = $this->nettoyer($reglement['periode']);
|
|
$etatdecompte = $this->nettoyer($reglement['etatdecompte']);
|
|
}
|
|
|
|
?>
|
|
|
|
<script type="text/javascript">
|
|
|
|
</script>
|
|
|
|
<div id="div_page_complet">
|
|
|
|
<input class="sr-only" type="text" id="regle" name="regle" value="<?= $regle ?>" >
|
|
<input class="sr-only" type="text" id="codeTypePrestataire" name="codeTypePrestataire" value="<?= $codeTypePrestataire ?>" >
|
|
<input class="sr-only" type="text" id="idReglement" name="idReglement" value="<?= $idReglement ?>" >
|
|
|
|
|
|
<div id="reglement">
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="40%" > <input style='text-align:center; font-size:11pt;' class="form-control" type="text" value= "Décompte No : <?= $numeroDecompte ?> => Prestataire : <?= $reglement['prestataire'] ?>" readonly > </td>
|
|
|
|
<?php if($regle=='0'): ?>
|
|
<td align="center" width="20%" > <input style='text-align:center; font-size:10pt; background-color:red;color:white;' class="form-control" type="text" value= "Non validé" readonly > </td>
|
|
<?php else: ?>
|
|
<td align="center" width="20%" > <input style='text-align:center; font-size:10pt; background-color:palevioletred;color:white;' class="form-control" type="text" value= "1ère validation effectuée" readonly > </td>
|
|
<?php endif; ?>
|
|
|
|
<td width="10%" align="center"> <?= _("No Border") ?> </td>
|
|
<td width="15%"> <input id="numeroBordereauDecompte" name="numeroBordereauDecompte" class = "form-control btn" type="text" value="<?= $this->nettoyer($reglement['numeroBordereau']) ?>" style='font-size:10pt;' readonly> </td>
|
|
<td width="15%"> <input class = "form-control btn btn-primary" type="button" value="<?= _("Modif No Bord") ?>" onClick="javascript:maj_bordereau_decompte(<?= $idReglement ?>,'<?= $numeroBordereau ?>');" style='font-size:10pt;' > </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<input class="sr-only" type="text" id="fraisReel" name="fraisReel" value="<?= $this->nettoyer($reglement['fraisReel']) ?>" >
|
|
<input class="sr-only" type="text" id="montantTm" name="montantTm" value="<?= $this->nettoyer($reglement['montantTm']) ?>" >
|
|
<input class="sr-only" type="text" id="montantArembourser" name="montantArembourser" value="<?= $this->nettoyer($reglement['montantArembourser']) ?>" >
|
|
<input class="sr-only" type="text" id="fraisExclu" name="fraisExclu" value="<?= $this->nettoyer($reglement['fraisExclu']) ?>" >
|
|
<input class="sr-only" type="text" id="fraisRetenu" name="fraisRetenu" value="<?= $this->nettoyer($reglement['fraisRetenu']) ?>" >
|
|
<input class="sr-only" type="text" id="montantForce" name="montantForce" value="<?= $this->nettoyer($reglement['montantForce']) ?>" >
|
|
<input class="sr-only" type="text" id="montantApayer" name="montantApayer" value="<?= $this->nettoyer($reglement['montantApayer']) ?>" >
|
|
<input class="sr-only" type="text" id="nbExclues" name="nbExclues" value="<?= $this->nettoyer($reglement['nbExclues']) ?>" >
|
|
<input class="sr-only" type="text" id="nbNonTraite" name="nbNonTraite" value="<?= $this->nettoyer($reglement['nbNonTraite']) ?>" >
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="10%" > <?= _("Période") ?> </td>
|
|
<td width="15%" > <INPUT style='font-size:10pt;' class="form-control" TYPE="text" value="<?= $libellePeriode ?>" readonly> </td>
|
|
|
|
<td width="10%" align="center"> Date </td>
|
|
<td width="15%" ><INPUT style='font-size:10pt;' class="form-control" TYPE="text" value="<?= dateheureLang($this->nettoyer($reglement['dateSysteme'])) ?>" readonly ></td>
|
|
|
|
<td width="10%" align="center"> <?= _("Frais") ?> </td>
|
|
<td width="13%" > <INPUT style='font-size:10pt; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($reglement['fraisReel'])) ?>" readonly > </td>
|
|
|
|
<td width="10%" align="center"> <?= _("T M") ?> </td>
|
|
<td width="15%" > <INPUT style='font-size:10pt; color:red; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($reglement['montantTm'])) ?>" readonly ></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> <?= _("A Remb") ?> </td>
|
|
<td><INPUT style='font-size:10pt; text-align:center; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($reglement['montantArembourser'])) ?>" readonly ></td>
|
|
|
|
<td align="center"> <?= _("Dépas") ?> </td>
|
|
<td><INPUT style='font-size:10pt; color:red;text-align:center; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($reglement['fraisExclu'])) ?>" readonly ></td>
|
|
|
|
<td align="center"> <?= _("Retenu") ?> </td>
|
|
<td><INPUT style='font-size:10pt; color:blue; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($reglement['fraisRetenu'])) ?>" readonly ></td>
|
|
|
|
<td align="center"> <?= _("A payer") ?> </td>
|
|
<td colspan="2"><INPUT style='font-size:10pt; text-align:center; color:blue;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($reglement['montantApayer'])) ?>" readonly ></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> <?= _("Forcé") ?> </td>
|
|
<td><INPUT style='font-size:10pt; text-align:center; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($reglement['montantForce'])) ?>" readonly ></td>
|
|
|
|
<td align="center"> <?= _("Rejeté") ?> </td>
|
|
<td><INPUT style='font-size:10pt; color:red;text-align:center; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($reglement['montantRejete'])) ?>" readonly ></td>
|
|
|
|
<td align="center"> <?= _("Exclues") ?> </td>
|
|
<td><INPUT style='font-size:10pt; color:blue; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($reglement['montantExclues'])) ?>" readonly ></td>
|
|
|
|
<td> </td>
|
|
<td > <input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Actualiser") ?>"onClick="javascript:afficherdecompte();" style='font-size:10pt;' > </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:7pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="6%" style='text-align:center'> Date </th>
|
|
<th width="8%" style='text-align:center'> <?= _("No Feuille") ?> </th>
|
|
<th width="5%" style='text-align:center;'> <?= _("No Bénéf") ?> </th>
|
|
<th width="12%" style='text-align:center;'> <?= _("Bénéficiaire") ?> </th>
|
|
<th width="6%" style='text-align:center'> <?= _("Frais") ?> </th>
|
|
<th width="4%" style='text-align:center'> <?= _("T M") ?> </th>
|
|
<th width="6%" style='text-align:center'> <?= _("A Remb") ?> </th>
|
|
<th width="5%" style='text-align:center'> <?= _("Dépas") ?> </th>
|
|
<th width="6%" style='text-align:center'> <?= _("Ret") ?> </th>
|
|
<th width="9%" style='text-align:center'> <?= _("Forcé") ?> </th>
|
|
<th width="6%" style='text-align:center'> <?= _("A payer") ?> </th>
|
|
<th width="4%" style='text-align:center'>Val</th>
|
|
<th width="4%" style='text-align:center'>Rej</th>
|
|
<!-- <th width="3%" style='text-align:center'>Att</th> -->
|
|
<th width="3%" style='text-align:center'>Excl</th>
|
|
<th width="5%" style='text-align:center'>Obs</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
<div id="detail_reglement">
|
|
|
|
<div id ="div_wait">
|
|
</div>
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:7pt;">
|
|
|
|
<tbody>
|
|
<?php foreach ($factures as $facture):
|
|
$idFacture = $this->nettoyer($facture['idFacture']);
|
|
$numeroFeuilleMaladie = $this->nettoyer($facture['numeroFeuilleMaladie']);
|
|
$tiersPayant = $facture['tiersPayant'];
|
|
$valide = $facture['valide'];
|
|
$userControle = $facture['userControle'];
|
|
$observations = $facture['observations'];
|
|
$codeTypeFacture = $this->nettoyer($facture['codeTypeFacture']);
|
|
?>
|
|
<tr valign="top">
|
|
<td width="6%" align='center'><?= dateheureLang($this->nettoyer($facture['dateSysteme'])) ?></td>
|
|
<td width="8%" align="center">
|
|
<input class="form-control btn btn-primary" type="button" value="<?= $numeroFeuilleMaladie ?>"
|
|
onClick="javascript:selectionner_feuille_maladie('<?= $numeroFeuilleMaladie ?>');afficher_feuille_maladie_dec();">
|
|
</td>
|
|
<td width="5%" align='center'><?= $idFacture ?></td>
|
|
<td width="6%" align='center'> <?= $this->nettoyer($facture['userControle']) ?> </td>
|
|
<td width="5%" align='center'> <?= $this->nettoyer($facture['numeroBeneficiaire']) ?> </td>
|
|
<td width="12%" ><?= $this->nettoyer($facture['beneficiaire']) ?></td>
|
|
<td width="6%" align='center'><?= format_N($this->nettoyer($facture['fraisReel'])) ?></td>
|
|
<td width="4%" align='center'><?= format_N($this->nettoyer($facture['montantTm'])) ?></td>
|
|
<td width="6%" align='center'><?= format_N($this->nettoyer($facture['montantArembourser'])) ?></td>
|
|
<td width="5%" align='center'><?= format_N($this->nettoyer($facture['fraisExclu'])) ?></td>
|
|
<td width="6%" align='center'><?= format_N($this->nettoyer($facture['fraisRetenu'])) ?></td>
|
|
|
|
<?php if($userCourant==$userControle): ?>
|
|
<td width="9%" ><INPUT class="form-control" style='text-align:center' TYPE="number" value="<?= $this->nettoyer($facture['montantForce']) ?>"
|
|
onChange="this.value=supprimer_espace_nombre(this.value);if(controle_numerique(this)){maj_montantForce('<?=$idFacture?>', this.value);}">
|
|
</td>
|
|
|
|
<td width="6%" align='center' style="color:red"><?= format_N($this->nettoyer($facture['montantApayer'])) ?></td>
|
|
|
|
<?php if($valide=='1'): ?>
|
|
<td width="4%" align='center'> <input type="checkbox" checked value="<?= $valide ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};valider_facture('<?=$idFacture?>', this.value, '<?=$codeTypeFacture?>');"></td>
|
|
<?php else: ?>
|
|
<td width="4%" align='center'> <input type="checkbox" value="<?= $valide ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};valider_facture('<?=$idFacture?>', this.value, '<?=$codeTypeFacture?>');"></td>
|
|
<?php endif; ?>
|
|
|
|
<?php if($valide=='9'): ?>
|
|
<td width="4%" align='center'> <input type="checkbox" checked value="<?= $valide ?>" onClick="javascript:if(this.value=='9'){this.value='0'}else{this.value='9'};valider_facture('<?=$idFacture?>', this.value, '<?=$codeTypeFacture?>');"></td>
|
|
<?php else: ?>
|
|
<td width="4%" align='center'> <input type="checkbox" value="<?= $valide ?>" onClick="javascript:if(this.value=='9'){this.value='0'}else{this.value='9'};valider_facture('<?=$idFacture?>', this.value, '<?=$codeTypeFacture?>');"></td>
|
|
<?php endif; ?>
|
|
|
|
<?php if($valide=='2'): ?>
|
|
<td width="3%" align='center'> <input type="checkbox" checked value="<?= $valide ?>" onClick="javascript:if(this.value=='2'){this.value='0'}else{this.value='2'};valider_facture('<?=$idFacture?>', this.value, '<?=$codeTypeFacture?>');"></td>
|
|
<?php else: ?>
|
|
<td width="3%" align='center'> <input type="checkbox" value="<?= $valide ?>" onClick="javascript:if(this.value=='2'){this.value='0'}else{this.value='2'};valider_facture('<?=$idFacture?>', this.value, '<?=$codeTypeFacture?>');"></td>
|
|
<?php endif; ?>
|
|
|
|
<?php if($observations>' '): ?>
|
|
<td width="5%" align="center"> <input type="button" value="<?= _("Obs") ?>"
|
|
onClick="javascript:maj_observations_facture(<?= $idFacture ?>,'<?= $observations ?>');">
|
|
</td>
|
|
<?php else: ?>
|
|
<td width="5%" align="center"> <input type="button" value="-"
|
|
onClick="javascript:maj_observations_facture(<?= $idFacture ?>,'<?= $observations ?>');">
|
|
</td>
|
|
<?php endif; ?>
|
|
|
|
<?php else: ?>
|
|
<td width="6%" align='center'><?= format_N($this->nettoyer($facture['montantForce'])) ?></td>
|
|
<td width="6%" align='center' style="color:red"><?= format_N($this->nettoyer($facture['montantApayer'])) ?></td>
|
|
|
|
<?php if($valide=='1'): ?>
|
|
<td width="4%" align='center'> <input type="checkbox" checked value="<?= $valide ?>" disabled ></td>
|
|
<?php else: ?>
|
|
<td width="4%" align='center'> <input type="checkbox" value="<?= $valide ?>" disabled ></td>
|
|
<?php endif; ?>
|
|
|
|
<?php if($valide=='9'): ?>
|
|
<td width="4%" align='center'> <input type="checkbox" checked value="<?= $valide ?>" disabled ></td>
|
|
<?php else: ?>
|
|
<td width="4%" align='center'> <input type="checkbox" value="<?= $valide ?>" disabled ></td>
|
|
<?php endif; ?>
|
|
|
|
<?php if($valide=='2'): ?>
|
|
<td width="3%" align='center'> <input type="checkbox" checked value="<?= $valide ?>" disabled ></td>
|
|
<?php else: ?>
|
|
<td width="3%" align='center'> <input type="checkbox" value="<?= $valide ?>" disabled ></td>
|
|
<?php endif; ?>
|
|
|
|
<?php if($observations>' '): ?>
|
|
<td width="5%" align="center"> <input type="button" value="<?= _("Obs") ?>"
|
|
onClick="javascript:alert('<?= $observations ?>');">
|
|
</td>
|
|
<?php else: ?>
|
|
<td width="5%" align="center"> <input type="button" value="-"
|
|
onClick="javascript:alert('<?= $observations ?>');">
|
|
</td>
|
|
<?php endif; ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|