125 lines
4.7 KiB
PHP
Executable File
125 lines
4.7 KiB
PHP
Executable File
<?php $nbligne = 0; ?>
|
|
|
|
<div id="div_detail_requete">
|
|
|
|
<button id="btn_pop_consulter_facture" NAME="btn_pop_consulter_facture" type="button" class="sr-only" data-toggle="modal" data-target="#pop_consulter_facture"> </button>
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:7pt;">
|
|
<thead>
|
|
|
|
<tr>
|
|
<td colspan="6" style='text-align:center'> <?= format_N($this->nettoyer($factures_total['nbLigne'])) . " " . _("Ligne(s) au total") ?> </td>
|
|
<td align='center'><?= format_N($this->nettoyer($factures_total['montantFactureTotal'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($factures_total['montantRedresseTotal'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($factures_total['montantApayerTotal'])) ?></td>
|
|
<td colspan="3" > </td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th style='text-align:center'> Date </th>
|
|
<th style='text-align:center'> <?= _("Facture") ?> </th>
|
|
<th> <?= _("Prestataire") ?> </th>
|
|
<th> <?= _("Souscripteur") ?> </th>
|
|
<th colspan="2" style='text-align:center'> <?= _("Bénéficiaire") ?> </th>
|
|
<th style='text-align:center'> <?= _("Frais") ?> </th>
|
|
<th style='text-align:center'> <?= _("Redressé") ?> </th>
|
|
<th style='text-align:center'> <?= _("A Payer") ?> </th>
|
|
<th style='text-align:center'> <?= _("Vérif") ?> </th>
|
|
<th style='text-align:center'> <?= _("Fact") ?> </th>
|
|
<th style='text-align:center'> <?= _("Enc") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="6" style='text-align:center'> <?= format_N($this->nettoyer($factures_total['nbLigne'])) . " " . _("Ligne(s) au total") ?> </td>
|
|
<td align='center'><?= format_N($this->nettoyer($factures_total['montantFactureTotal'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($factures_total['montantRedresseTotal'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($factures_total['montantApayerTotal'])) ?></td>
|
|
<td colspan="3" > </td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
<?php foreach ($gcs as $gc):
|
|
$idFacture=$this->nettoyer($gc['idFacture']);
|
|
$nbligne++;
|
|
?>
|
|
<tr ondblclick="javascript:afficher_facture_gc('<?= $idFacture ?>');" valign="top">
|
|
<td align='center'><?= dateFr($this->nettoyer($gc['dateFacture'])) ?></td>
|
|
|
|
<td align='center'>
|
|
<input style='font-size:7pt;' type="button" value="<?= $idFacture ?>"
|
|
onClick="javascript:consulter_facture_pop('<?= $idFacture ?>');">
|
|
</td>
|
|
|
|
<td><?= $this->nettoyer($gc['prestataire']) ?></td>
|
|
<td><?= $this->nettoyer($gc['souscripteur']) ?></td>
|
|
<td align='center'><?= $this->nettoyer($gc['numeroBeneficiaire']) ?></td>
|
|
<td><?= $this->nettoyer($gc['beneficiaire']) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($gc['montantFacture'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($gc['montantRedresse'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($gc['montantApayer'])) ?></td>
|
|
|
|
<?php if($gc['payable']=='1'): ?>
|
|
<td align='center'> <input type="checkbox" checked disabled ></td>
|
|
<?php else: ?>
|
|
<td align='center'> <input type="checkbox" disabled ></td>
|
|
<?php endif; ?>
|
|
|
|
<?php if($gc['facture']=='1'): ?>
|
|
<td align='center'> <input type="checkbox" checked disabled ></td>
|
|
<?php else: ?>
|
|
<td align='center'> <input type="checkbox" disabled ></td>
|
|
<?php endif; ?>
|
|
|
|
<?php if($gc['regle']=='1'): ?>
|
|
<td align='center'> <input type="checkbox" checked disabled ></td>
|
|
<?php else: ?>
|
|
<td align='center'> <input type="checkbox" disabled ></td>
|
|
<?php endif; ?>
|
|
|
|
</tr>
|
|
|
|
<?php
|
|
if ($nbligne == 200) {
|
|
$nbligne = "> ".$nbligne." => Utilisez Excel";
|
|
break;
|
|
}
|
|
?>
|
|
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
<input class="sr-only" type="text" id="nbligne_info" name="nbligne_info" value="<?= $nbligne ?>" >
|
|
|
|
<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-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-dismiss="modal"><?= _("Fermer") ?></button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|