production/Vue/Ajaxfactureconspop/prestationactes.php
2025-12-01 16:12:12 +00:00

71 lines
3.0 KiB
PHP
Executable File

<div id="div_facture_detail" style="font-size:7pt;">
<?php
$actVisible = $_SESSION['actVisible'];
?>
<input style='text-align:center; font-size:11pt; background-color:#027BE3;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 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):
$idPrestation = $this->nettoyer($prestation['id']);
$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'>
<INPUT style="font-size:7pt;" class="form-control datepicker" value="<?= datefr($this->nettoyer($prestation['datePrestation'])); ?>"
onChange="ajax_maj_dateprestation('<?=$idPrestation?>', this.value);">
</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>