45 lines
1.8 KiB
PHP
Executable File
45 lines
1.8 KiB
PHP
Executable File
<legend><?= _("DEFICITS")?></legend>
|
|
<?php $nbreLigne = count($detaildeficitgarant);?>
|
|
|
|
<div id="div_deficit">
|
|
<table id="" class="table table-responsive table-condensed" style="font-size:12pt;">
|
|
<thead>
|
|
<tr>
|
|
<td align="center"><?= _("Début") ?></td>
|
|
<td align="center"><?= _("Fin") ?></td>
|
|
<td align="center"><?= _("Provision") ?></td>
|
|
<td align="center"><?= _("Sinistres") ?></td>
|
|
<td align="center"><?= _("Déficit") ?></td>
|
|
</tr>
|
|
</thead>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="2"><?= "Total ($nbreLigne)" ?></td>
|
|
<td align="center"><?= format_N($entetefacturegarant['montantProvision']) ?></td>
|
|
<td align="center"><?= format_N($entetefacturegarant['montantSinistre']) ?></td>
|
|
<td align="center"><?= format_N($entetefacturegarant['montantDeficit']) ?></td>
|
|
</tr>
|
|
</tfoot>
|
|
<tbody>
|
|
<?php
|
|
//$bool = "0";
|
|
|
|
foreach ($detaildeficitgarant as $v):
|
|
?>
|
|
<tr valign="top" >
|
|
<td align="center"><?= dateLang($v['dateDebut'], $_SESSION['lang']) ?></td>
|
|
<td align="center"><?= dateLang($v['dateFin'], $_SESSION['lang']) ?></td>
|
|
<td align="center"><?= format_N($v['montantProvision']) ?></td>
|
|
<td align="center"><?= format_N($v['montantSinistre']) ?></td>
|
|
<td align="center"><?= format_N($v['montantDeficit']) ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
<?php if($nbreLigne > "0"):?>
|
|
<input id="btn_faccaut" name="btn_faccaut" class = "form-control btn btn-primary" type="button" value="<?= _("Générer Facture Déficit") ?>" onClick="genererfacturedeficitgarant();" style='font-size:12pt;' >
|
|
<?php else:?>
|
|
<input id="btn_faccaut" name="btn_faccaut" class = "form-control btn btn-primary" type="button" value="<?= _("Générer Facture Déficit") ?>" style='font-size:12pt;' disabled >
|
|
<?php endif;?>
|
|
</div>
|