prestation/Vue/Decompte/index.php
2025-12-05 10:42:46 +00:00

598 lines
30 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'];
$codeUtilisateur = $reglement['codeUtilisateur'];
$regle = $reglement['regle'];
$codeTypePrestataire = $reglement['codeTypePrestataire'];
$codePrestataire = $reglement['codePrestataire'];
$numeroBordereau = $reglement['numeroBordereau'];
$ndFacture = $reglement['ndFacture'];
$nbNonTraite = $reglement['nbNonTraite'];
$nbValide = $reglement['nbValide'];
$nbAttente = $reglement['nbAttente'];
$nbRejete = $reglement['nbRejete'];
$nbExclues = $reglement['nbExclues'];
$receptionValide = $reglement['receptionValide'];
$montantPrestataire = $reglement['montantPrestataire'];
$_SESSION['idAdherent_C'] = "";
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_test">
</div>
<div id="div_page_complet">
<button class="sr-only" id="btn_demande_reglement" name="btn_demande_reglement" type="button" data-bs-toggle="modal" data-bs-target="#pop_demande_reglement" > </button>
<input class="sr-only" type="text" id="regle" name="regle" value="<?= $regle ?>" >
<input class="sr-only" type="text" id="montantPrestataire" name="montantPrestataire" value="<?= $montantPrestataire ?>" >
<input class="sr-only" type="text" id="codeTypePrestataire" name="codeTypePrestataire" value="<?= $codeTypePrestataire ?>" >
<input class="sr-only" type="text" id="codePrestataire" name="codePrestataire" value="<?= $codePrestataire ?>" >
<input class="sr-only" type="text" id="idReglement" name="idReglement" value="<?= $idReglement ?>" >
<input class="sr-only" type="text" id="numeroDecompte" name="numeroDecompte" value="<?= $numeroDecompte ?>" >
<input class="sr-only" type="text" id="userCourant" name="userCourant" value="<?= $userCourant ?>" >
<input class="sr-only" type="text" id="idSaisieDecompte" name="idSaisieDecompte" value="<?= $_SESSION['idSaisie'] ?>" >
<input class="sr-only" type="text" id="lienPrestation_C" name="lienPrestation_C" value="<?= $_SESSION['lienPrestation_C'] ?>" >
<input class="sr-only" type="text" id="lienProduction_C" name="lienProduction_C" value="<?= $_SESSION['lienProduction_C'] ?>" >
<input class="sr-only" type="text" id="prestataire" name="prestataire" value="<?= $reglement['prestataire'] ?>" >
<button id="btn_pop" NAME="btn_pop" type="button" class="sr-only" data-bs-toggle="modal" data-bs-target="#pop_verifier_facture"> </button>
<button id="btn_pop_reception" NAME="btn_pop_reception" type="button" class="sr-only" data-bs-toggle="modal" data-bs-target="#pop_recption"> </button>
<button id="btn_pop_ged" NAME="btn_pop_ged" type="button" class="sr-only" data-bs-toggle="modal" data-bs-target="#popGed"> <?= _("Afficher la GED pharmacie...") ?> </button>
<button id="btn_pop_rattrapage_reception" NAME="btn_pop_rattrapage_reception" type="button" class="sr-only" data-bs-toggle="modal" data-bs-target="#pop_rattrapage_reception">
</button>
<button id="btn_pop_consulter_facture" NAME="btn_pop_consulter_facture" type="button" class="sr-only" data-bs-toggle="modal" data-bs-target="#pop_consulter_facture"> </button>
<div id="reglement">
<table class="table table-responsive table-condensed" style='font-size:9pt;'>
<tbody>
<tr>
<td width="35%" > <input style='text-align:center; font-size:9pt;' class="form-control" type="text" value= "<?= _("Décpte No") . " : " . $numeroDecompte . " => " . $reglement['prestataire'] ?>" readonly > </td>
<?php if($regle=='0'): ?>
<td align="center" width="25%" > <input style='text-align:center; font-size:9pt; background-color:red;color:white;' class="form-control" type="text" value="<?= $etatdecompte ?>" readonly > </td>
<?php else: ?>
<td align="center" width="25%" > <input style='text-align:center; font-size:9pt; background-color:palevioletred;color:white;' class="form-control" type="text" value="<?= $etatdecompte ?>" readonly > </td>
<?php endif; ?>
<td width="5%" align="center"> <?= _("No Lot") ?> </td>
<td width="15%"> <input id="numeroLotDecompte" name="numeroLotDecompte" class = "form-control btn" type="text" value="<?= $this->nettoyer($reglement['numeroLotDecompte']) ?>" style='font-size:9pt;' readonly> </td>
<td width="5%" align="center"> <?= _("Vérif") ?> </td>
<?php if($userCourant==$codeUtilisateur): ?>
<td width="15%" > <input id="codeUtilisateur" name="codeUtilisateur" style='text-align:center; font-size:9pt;' class="form-control" type="text" value="<?= $codeUtilisateur ?>" readonly > </td>
<?php else: ?>
<td width="15%"> <input id="codeUtilisateur" name="codeUtilisateur" class = "form-control btn btn-primary" type="button" value="<?= $codeUtilisateur ?> / Chang" onClick="javascript:changer_verificateur();" style='font-size:9pt;' > </td>
<?php endif; ?>
</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="prixManuel" name="prixManuel" value="<?= $this->nettoyer($reglement['prixManuel']) ?>" >
<input class="sr-only" type="text" id="deltaPrix" name="deltaPrix" value="<?= $this->nettoyer($reglement['deltaPrix']) ?>" >
<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="montantRedresse" name="montantRedresse" value="<?= $this->nettoyer($reglement['montantRedresse']) ?>" >
<input class="sr-only" type="text" id="montantApayer" name="montantApayer" value="<?= $this->nettoyer($reglement['montantApayer']) ?>" >
<input class="sr-only" type="text" id="montantRedresse_sans_format" name="montantRedresse_sans_format" value="0" >
<input class="sr-only" type="text" id="observations_val" name="observations_val" >
<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:8pt;'>
<tbody>
<tr>
<td width="5%" > <?= _("Période") ?> </td>
<td width="15%" > <INPUT style='font-size:8pt; text-align:center;' id="periode" name="periode" class="form-control" TYPE="text" value="<?= $libellePeriode ?>" readonly> </td>
<td width="5%" align="center"> <?= _("Récept") ?> </td>
<?php if($receptionValide=="1"): ?>
<td width="15%" ><INPUT id="dateReception" name="dateReception" style='font-size:8pt; text-align:center;' class="form-control" TYPE="text" value="<?= dateLang($this->nettoyer($reglement['dateReception'])) ?> / <?= format_N($this->nettoyer($reglement['montantPrestataire'])) ?>" readonly ></td>
<?php else: ?>
<td width="15%"> <input id="btn_dateReception" name="btn_dateReception" class = "form-control btn btn-primary" type="button" value="<?= dateLang($this->nettoyer($reglement['dateReception'])) ?>/ <?= format_N($this->nettoyer($reglement['montantPrestataire'])) ?> " onClick="javascript:$('#btn_pop_reception').click();" style='font-size:9pt;' > </td>
<?php endif; ?>
<td width="5%" align="center"> <?= _("Frais") ?> </td>
<td width="13%" >
<?php if($this->nettoyer($reglement['prixManuel'])=="0"): ?>
<INPUT style='font-size:8pt; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($reglement['fraisReel'])) ?>" readonly >
<?php else: ?>
<INPUT style='font-size:8pt; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($reglement['prixManuel'])) ?>" readonly >
<?php endif; ?>
</td>
<td width="5%" align="center"> <?= _("T M") ?> </td>
<td width="15%" > <INPUT style='font-size:8pt; color:red; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($reglement['montantTm'])) ?>" readonly ></td>
<td width="5%" align="center"> <?= _("A Remb") ?> </td>
<td width="15%" > <INPUT style='font-size:8pt; color:red; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($reglement['montantArembourser'])) ?>" readonly ></td>
</tr>
<tr>
<td> <?= _("Dépas") ?> </td>
<td><INPUT style='font-size:8pt; 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:8pt; color:blue; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($reglement['fraisRetenu'])) ?>" readonly ></td>
<td align="center"> <?= _("Forcé") ?> </td>
<td><INPUT style='font-size:8pt; text-align:center; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($reglement['montantForce'])) ?>" readonly ></td>
<td align="center"> <?= _("A payer") ?> </td>
<td><INPUT style='font-size:8pt; text-align:center; color:blue;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($reglement['montantApayer'])) ?>" readonly ></td>
<td align="center"> <?= _("Redressé") ?> </td>
<td><INPUT style='font-size:8pt; text-align:center; color:blue;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($reglement['montantRedresse'])) ?>" readonly ></td>
</tr>
<tr>
<td> <?= _("Rejeté") ?> </td>
<td><INPUT style='font-size:8pt; 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:8pt; color:blue; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($reglement['montantExclues'])) ?>" readonly ></td>
<td align="center"> <?= _("Récap") ?> </td>
<td colspan="3"> <INPUT style='font-size:8pt; ' class="form-control" TYPE="text" value="<?= 'Total '.$ndFacture.' / ' . _("Validés") . ' : '.$nbValide.' / ' . _("Rejétés") . ' : '.$nbRejete.' / ' . _("Exclues") . ' : '.$nbExclues.' / ' . _("Non traités") . ' : '.$nbNonTraite ?>" readonly ></td>
<td> </td>
<td> <input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Actualiser") ?>"onClick="javascript:re_afficherdecompte();" style='font-size:8pt;' > </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="5%" style='text-align:center'> Date </th>
<th width="5%" style='text-align:center'> <?= _("No Bon") ?> </th>
<th width="10%" style='text-align:center;'> <?= _("Souscripteur") ?> </th>
<th width="10%" style='text-align:center;'> <?= _("Adhérent") ?> </th>
<th width="11%" 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="6%" style='text-align:center'> <?= _("Forcé") ?> </th>
<th width="7%" style='text-align:center'> <?= _("A payer") ?> </th>
<th width="5%" style='text-align:center'> <?= _("Redressé") ?> </th>
<th width="3%" style='text-align:center'>Val</th>
<th width="3%" 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:6pt;">
<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 = $this->nettoyer($facture['observations']);
$observations = $this->echapper($observations);
$codeTypeFacture = $this->nettoyer($facture['codeTypeFacture']);
$gc = $this->nettoyer($facture['gc']);
$numeroBon = $this->nettoyer($facture['numeroBonConsultation']);
if($codeTypeFacture=="PHA")
{
$codeTypeFacture="PHAR";
}
if($codeTypeFacture=="PHAR")
{
$numeroBon = $this->nettoyer($facture['numeroBonOrdonnance']);
}
elseif($codeTypeFacture=="OPT")
{
$numeroBon = $this->nettoyer($facture['numeroBonOptique']);
}
elseif($codeTypeFacture=="LAB")
{
$numeroBon = $this->nettoyer($facture['numeroBonExamen']);
}
elseif($codeTypeFacture=="SEA")
{
$numeroBon = $this->nettoyer($facture['numeroBonSeance']);
}
if($codeTypeFacture=="PHA")
{
$frais = $this->nettoyer($facture['prixManuel']);
}else{
$frais = $this->nettoyer($facture['fraisReel']);
}
//var_dump($numeroFeuilleMaladie);
//var_dump($idFacture);
//var_dump($codeTypeFacture);
?>
<?php if($valide=='2'): ?>
<tr valign="top" style="background-color: red;color:white;">
<?php else: ?>
<tr valign="top" >
<?php endif; ?>
<td width="5%" align='center'>
<input class="form-control btn btn-info" type="button" value="<?= substr(dateLang($this->nettoyer($facture['dateFacture'])),0,2) ?>"
onClick="javascript:consulter_facture_pop('<?= $idFacture ?>');">
</td>
<?php if($gc=='1'): ?>
<td width="5%" align='center'>
<input class="form-control btn btn-warning" type="button" value="<?= $numeroBon ?>"
onClick="javascript:ged_decompte_gc('<?=$idFacture?>');">
</td>
<?php else: ?>
<td width="5%" align='center'> <?= $numeroBon ?> </td>
<?php endif; ?>
<td width="10%" ><?= $this->nettoyer($facture['souscripteur']) ?></td>
<td width="10%" ><?= $this->nettoyer($facture['adherent']) ?></td>
<td width="11%" ><?= $this->nettoyer($facture['beneficiaire']) ?></td>
<td width="6%" align='center'><?= format_N($frais) ?></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>
<td width="6%" align='center'>
<div id="montantForce<?= $idFacture ?>" name="montantForce<?= $idFacture ?>">
<?= format_N($this->nettoyer($facture['montantForce'])) ?>
</div>
</td>
<td width="7%" align="center">
<div id="montantApayer<?= $idFacture ?>" name="montantApayer<?= $idFacture ?>">
<input class="form-control btn btn-primary" type="button" value="<?= format_N($this->nettoyer($facture['montantApayer'])) ?>"
onClick="javascript:verifier_feuille_maladie_dec('<?= $numeroFeuilleMaladie ?>', '<?=$idFacture?>', '<?=$codeTypeFacture?>');">
</div>
</td>
<td width="5%" align='center' style="color:red">
<div id="montantRedresse<?= $idFacture ?>" name="montantRedresse<?= $idFacture ?>">
<?= format_N($this->nettoyer($facture['montantRedresse'])) ?>
</div>
</td>
<?php if($valide=='1'): ?>
<td width="3%" align='center'>
<div id="valide<?= $idFacture ?>" name="valide<?= $idFacture ?>">
<input type="checkbox" checked value="<?= $valide ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};valider_facture('<?=$idFacture?>', '<?=$numeroFeuilleMaladie?>', this.value, '<?=$codeTypeFacture?>');">
</div>
</td>
<?php else: ?>
<td width="3%" align='center'> <input type="checkbox" value="<?= $valide ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};valider_facture('<?=$idFacture?>', '<?=$numeroFeuilleMaladie?>', this.value, '<?=$codeTypeFacture?>');"></td>
<?php endif; ?>
<?php if($valide=='9'): ?>
<td width="3%" align='center'> <input type="checkbox" checked value="<?= $valide ?>" onClick="javascript:if(this.value=='9'){this.value='0'}else{this.value='9'};valider_facture('<?=$idFacture?>', '<?=$numeroFeuilleMaladie?>', this.value, '<?=$codeTypeFacture?>');"></td>
<?php else: ?>
<td width="3%" align='center'> <input type="checkbox" value="<?= $valide ?>" onClick="javascript:if(this.value=='9'){this.value='0'}else{this.value='9'};valider_facture('<?=$idFacture?>', '<?=$numeroFeuilleMaladie?>', 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?>', '<?=$numeroFeuilleMaladie?>', 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?>', '<?=$numeroFeuilleMaladie?>', 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; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div class="modal fade" id="pop_verifier_facture" 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"> <?= _("Vérification facture") ?> </h4>
</div>
<div class="modal-body">
<div id="div_verification_facture">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="pop_recption" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button id="btn_close_pop_reception" name="btn_close_pop_reception" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Informations Réception factures...") ?> </h4>
</div>
<div class="modal-body">
<div id="div_date_reelle">
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td> <?= _("Réception") ?> </td>
<td > <INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="dateReception_pop" NAME="dateReception_pop" value="<?= dateLang($this->nettoyer($reglement['dateReception'])) ?>" required AUTOCOMPLETE="OFF" > </td>
<td align="center" > <?= _("Montant réclamé") ?> </td>
<td width="15%"> <INPUT style='font-size:10pt; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($reglement['montantPrestataire'])) ?>" readonly > </td>
<td align='center'>
<input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="montantPrestataire_pop" name="montantPrestataire_pop"
onBlur="controle_numerique(this);" value="<?= $reglement['montantPrestataire'] ?>" >
</td>
<td> </td>
<td> <input class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer...") ?>" onClick="javascript:maj_reception_facture_decompte();" style='font-size:11pt;' > </td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button id="close_pop_reception" name="close_pop_reception" type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
<div id="div_ged">
<div class="modal fade" id="popGed" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button id="btn_close_pop_ged_facture" name="btn_close_pop_ged_facture" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("GED Facture...") ?> </h4>
</div>
<div class="modal-body">
<form enctype="multipart/form-data" name="ajax_form_upload" id="ajax_form_upload" method="post">
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td> <?= _("Document") ?> </td>
<td> <input style="font-size: 15px; height: 40px" class="form-control btn btn-info" name="fichier_upload" type="file" id="fichier_upload" /> </td>
<td> </td>
<td> <input onClick="javascript:valider_ged_decompte_gc();" style='font-size:10pt;' class="form-control btn btn-primary" type="button" name="btn_upload" name="btn_upload" value="<?= _("Envoyer") ?>" /> </td>
</tr>
</tbody>
</table>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="pop_demande_reglement" 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"> <?= _("Imprimer Demande de règlement") . '...' ?> </h4>
</div>
<div class="modal-body">
<?php if($reglement['numeroCompteBancaire']>' ' && $reglement['intituleCompteBancaire']>' '): ?>
<table class="table table-responsive table-condensed" style='font-size:10pt;' >
<tbody>
<tr>
<td width="12%" > <?= _("Banque") ?> </td>
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="banque" NAME="banque" value="<?=$this->nettoyer($reglement['banque'])?>" readonly></td>
<td width="12%" align="center" > <?= _("Code Banque") ?> </td>
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="codeBanqueInterne" NAME="codeBanqueInterne" value="<?=$this->nettoyer($reglement['codeBanqueInterne'])?>" readonly ></td>
</tr>
<tr>
<td > <?= _("Code Guichet") ?> </td>
<td><INPUT class="form-control" TYPE="text" id="codeGuichet" NAME="codeGuichet" value="<?=$this->nettoyer($reglement['codeGuichet'])?>" readonly ></td>
<td align="center" > <?= _("Cpte bancaire") ?> </td>
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="numeroCompteBancaire" NAME="numeroCompteBancaire" value="<?=$this->nettoyer($reglement['numeroCompteBancaire'])?>" readonly ></td>
</tr>
<tr>
<td> <?= _("Clé Rib") ?> </td>
<td> <INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="cleRib" NAME="cleRib" value="<?=$this->nettoyer($reglement['cleRib'])?>" readonly ></td>
<td align="center"> Iban </td>
<td> <INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="iban" NAME="iban" value="<?=$this->nettoyer($reglement['iban'])?>" readonly></td>
</tr>
<tr>
<td> <?= _("Intititulé Cpte") ?> </td>
<td colspan="3"> <INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="intituleCompteBancaire" NAME="intituleCompteBancaire" value="<?=$this->nettoyer($reglement['intituleCompteBancaire'])?>" readonly ></td>
</tr>
</tbody>
</table>
<INPUT class="sr-only" TYPE="text" id="a_enreg" NAME="a_enreg" value="0">
<?php else: ?>
<table class="table table-responsive table-condensed" style='font-size:10pt;' >
<tbody>
<tr>
<td width="12%" > <?= _("Banque") ?> </td>
<td>
<SELECT style='font-size:10pt;' class="form-control" id="codeBanque" NAME="codeBanque" required AUTOCOMPLETE="OFF" >
<?php liste_options($banque, $reglement["codeBanque"]); ?>
</SELECT>
</td>
<td width="12%" align="center" > <?= _("Code Banque") ?> </td>
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="codeBanqueInterne" NAME="codeBanqueInterne" value="<?=$this->nettoyer($reglement['codeBanqueInterne'])?>" ></td>
</tr>
<tr>
<td> <?= _("Code Guichet") ?> </td>
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="codeGuichet" NAME="codeGuichet" value="<?=$this->nettoyer($reglement['codeGuichet'])?>" ></td>
<td align="center" > <?= _("Cpte bancaire") ?> </td>
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="numeroCompteBancaire" NAME="numeroCompteBancaire" value="<?=$this->nettoyer($reglement['numeroCompteBancaire'])?>" ></td>
</tr>
<tr>
<td> <?= _("Clé Rib") ?> </td>
<td> <INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="cleRib" NAME="cleRib" value="<?=$this->nettoyer($reglement['cleRib'])?>" ></td>
<td align="center"> Iban </td>
<td> <INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="iban" NAME="iban" value="<?=$this->nettoyer($reglement['iban'])?>" ></td>
</tr>
<tr>
<td> <?= _("Intititulé Cpte") ?> </td>
<td colspan="3"> <INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="intituleCompteBancaire" NAME="intituleCompteBancaire" value="<?=$this->nettoyer($reglement['intituleCompteBancaire'])?>" ></td>
</tr>
</tbody>
</table>
<INPUT class="sr-only" TYPE="text" id="a_enreg" NAME="a_enreg" value="1">
<?php endif; ?>
<input class = "form-control btn btn-primary" type="button" value="<?= _("Imprimer") ?>" onClick="javascript:imprimer_demande_reglement();" style='font-size:11pt;' >
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
<div id="div_export_demande_reglement">
</div>
</div>
</div>
</div>
<div id="div_rattrapage_reception">
</div>
<div class="modal fade" id="pop_consulter_facture" 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"> <?= _("Consultation facture...") ?> </h4>
</div>
<div class="modal-body">
<div id="div_consulter_facture_pop">
</div>
<div id="div_facture_detail">
</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>