158 lines
6.5 KiB
PHP
Executable File
158 lines
6.5 KiB
PHP
Executable File
<?php
|
|
|
|
|
|
?>
|
|
|
|
<div class="modal-dialog modal-lg" style="max-width: 70%;" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-bs-dismiss="modal">×</button>
|
|
<legend class="modal-title" id="user" style="text-align:center;"><?= _('Consommations Bénéficiaire').' '.$_SESSION['nomBeneficiaire_C'].' ('.$_SESSION['numeroBeneficiaire_C'].")"; ?></legend>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div id="div_prestations">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="10%" style="text-align:center"> Date </th>
|
|
<th style="text-align:center"> <?= _("Prestataire") ?> </th>
|
|
<th colspan="2" style="text-align:center"> <?= _("Acte") ?> </th>
|
|
<!--
|
|
<th width="7%" style="text-align:center"> <?= _("P U") ?> </th>
|
|
<th width="3%" style="text-align:center"> <?= _("Qté") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("P T") ?> </th>
|
|
<th width="3%" style="text-align:center"> <?= _("TM") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("Mont TM") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("A Remb") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("Dépass") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("Motif") ?> </th>
|
|
-->
|
|
<th width="15%" style="text-align:center"> <?= _("Montant à payer") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
|
|
<td colspan="4" style='text-align:center'> <?= _("Total") ?> </td>
|
|
<!--
|
|
<td align='center'><?= format_N($this->nettoyer($total_prestation['fraisReel'])) ?></td>
|
|
<td></td>
|
|
<td align='center'><?= format_N($this->nettoyer($total_prestation['montantTm'])) ?></td>
|
|
<td align='center' style="background-color:rgba(255, 0, 127);color:white;"><?= format_N($this->nettoyer($total_prestation['montantArembourser'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($total_prestation['depassement'])) ?></td>
|
|
<td ></td>
|
|
-->
|
|
<td align='center' style="background-color:rgba(255, 0, 127);color:white;"><?= format_N($this->nettoyer($total_prestation['montantApayer'])) ?></td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
|
|
<?php
|
|
|
|
foreach ($prestations as $prestation):
|
|
$idPrestationactes = $this->nettoyer($prestation['id']);
|
|
$supprimable = $prestation['supprimable'];
|
|
$codeTypePrestation = $this->nettoyer($prestation['codeTypePrestation']);
|
|
$ententePrealable = $this->nettoyer($prestation['ententePrealable']);
|
|
$autorisation = $this->nettoyer($prestation['autorisation']);
|
|
$prestataire = $this->nettoyer($prestation['prestataire']);
|
|
$idProlongation = $this->nettoyer($prestation['idProlongation']);
|
|
|
|
if (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US")
|
|
{
|
|
if($codeTypePrestation == "PHAR" && $codeActe == "00000")
|
|
{
|
|
$libelleActe = "PHARMACIE INTERNE";
|
|
}else{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActeEng']);
|
|
}
|
|
|
|
}
|
|
else
|
|
{
|
|
if($codeTypePrestation == "PHAR" && $codeActe == "00000")
|
|
{
|
|
$libelleActe = "INTERNAL PHARMACY";
|
|
}else{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActe']);
|
|
}
|
|
}
|
|
|
|
$codeActe = $this->nettoyer($prestation['codeActe']);
|
|
|
|
$codeGarantie = $this->nettoyer($prestation['codeGarantie']);
|
|
|
|
$libelleConsommable = $this->nettoyer($prestation['libelleConsommable']);
|
|
|
|
if($codeTypePrestation == "CSM")
|
|
{
|
|
$libelleActe = $libelleConsommable;
|
|
}
|
|
|
|
|
|
if($idProlongation > "0"){
|
|
$libelleActe = $libelleActe." - "."PROROGATION";
|
|
}
|
|
|
|
$prixBase = $prestation['prixBase'];
|
|
|
|
if ($prixBase == "0"){
|
|
$prixBase = $prestation['valeurActe'];
|
|
}
|
|
|
|
$codeMotifDepassement = $this->nettoyer($prestation['codeMotifDepassement']);
|
|
$motif = $this->nettoyer($prestation['motif']);
|
|
|
|
?>
|
|
<?php if($ententePrealable=='2' || $autorisation=='2'): ?>
|
|
<tr valign="top" style="background-color: yellow;">
|
|
<?php elseif($ententePrealable=='1' || $autorisation=='1'): ?>
|
|
<tr valign="top" style="background-color: #00ff00;">
|
|
<?php elseif($ententePrealable=='9' || $autorisation=='9'): ?>
|
|
<tr valign="top" style="background-color: red;color:white;">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
<td align='center'> <?= dateheureLang($this->nettoyer($prestation['dateSysteme'])) ?> </td>
|
|
<td > <?= $prestataire ?> </td>
|
|
<td align='center'> <?= $codeGarantie ?> </td>
|
|
<td > <?= $libelleActe ?> </td>
|
|
<!--
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['valeurActe'])) ?></td>
|
|
|
|
<td align='center'> <?= $this->nettoyer($prestation['quantite']) ?></td>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['fraisReel'])) ?></td>
|
|
<td align='center'> <?= $this->nettoyer($prestation['tm'])?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['montantTm'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['montantArembourser'])) ?></td>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['depassement'])) ?></td>
|
|
<?php if($codeMotifDepassement!=''): ?>
|
|
<td align='center'>
|
|
<button type="button" class="btn btn-info" title="<?= _("Voir le motif du dépassement...") ?>" onClick="javascript:alert('<?= $motif ?>');">
|
|
<?= $codeMotifDepassement ?>
|
|
</button>
|
|
</td>
|
|
<?php else: ?>
|
|
<td > </td>
|
|
<?php endif; ?>
|
|
-->
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['montantApayer'])) ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="5" height="8"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" id="" class="btn btn-default" data-bs-dismiss="modal">Fermer</button>
|
|
</div>
|
|
</div>
|
|
</div>
|