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

67 lines
2.8 KiB
PHP
Executable File

<div id="div_facture_detail">
<?php
$actVisible = $_SESSION['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:9pt;">
<thead>
<tr>
<th width="12%" style="text-align:center"> Date </th>
<th colspan="2" style="text-align:center"> <?= _("Acte") ?> </th>
<th width="8%" style="text-align:center"> <?= _("Valeur") ?> </th>
<th style="text-align:center"> <?= _("Qtité") ?> </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 style="text-align:center"> Val </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 (est_anglophone())
{
$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['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'> <?= $this->nettoyer($prestation['valide']) ?> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>