prestation/Vue/Ajaxfactureconspop/prestationactes.php
2025-12-05 10:42:46 +00:00

70 lines
3.0 KiB
PHP
Executable File

<div id="div_facture_detail" style="font-size:7pt;">
<?php
$actVisible = $_SESSION['p_actVisible'];
?>
<input style='text-align:center; font-size:11pt; background-color:blue;color:white;' class="form-control" type="text" value= "<?= _("Les prestations de la facture") ?>" disabled >
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:7pt;">
<thead>
<tr>
<th width="12%" style="text-align:center"> Date </th>
<th colspan="2" style="text-align:center"> <?= _("Acte") ?> </th>
<th style="text-align:center"> <?= _("Base") ?> </th>
<th width="8%" style="text-align:center"> <?= _("Valeur") ?> </th>
<th style="text-align:center"> <?= _("Qté") ?> </th>
<th width="8%" style="text-align:center"> <?= _("Frais") ?> </th>
<th width="5%" style="text-align:center"> <?= _("T M") ?></th>
<th width="8%" style="text-align:center"> <?= _("A Remb") ?> </th>
<th width="8%" style="text-align:center"> <?= _("Depas") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($prestations as $prestation):
$codeTypePrestation = $this->nettoyer($prestation['codeTypePrestation']);
$ententePrealable = $this->nettoyer($prestation['ententePrealable']);
$autorisation = $this->nettoyer($prestation['autorisation']);
$codeActe = $this->nettoyer($prestation['codeActe']);
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
{
$libelleActe = $this->nettoyer($prestation['libelleActeEng']);
}
else
{
$libelleActe = $this->nettoyer($prestation['libelleActe']);
}
if($actVisible!="1")
{
$libelleActe = $codeActe;
}
?>
<?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 width="5%" align='center'> <?= $codeTypePrestation ?> </td>
<td align='center'> <?= $libelleActe ?> </td>
<td align='center'> <?= format_N($this->nettoyer($prestation['prixBase'])) ?></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'> <?= 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>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>