production/Vue/Ajaxajoutactesdec/index.php
2025-12-01 16:12:12 +00:00

122 lines
4.8 KiB
PHP
Executable File

<div id="div_ajout_actes">
<input class = "form-control btn btn-info" type="button" value="<?= _("Récapituler ajouts actes") ?>" onClick="recap_ajout_acte_dec();" style='font-size:9pt;' > </td>
<table class="table table-responsive table-condensed" style='font-size:8pt;'>
<tbody>
<tr>
<td width="5%" > <?= _("Actes") ?> </td>
<td>
<div class="frmSearch">
<input id="searchInputActe" name="searchInputActe" AUTOCOMPLETE="OFF" style="font-size:10pt;" class="form-control" type="text" placeholder="Veuillez rechercher et sélectionner un acte ici..." autofocus
onkeyup="javascript:affichelisteactes(this.value, 'decompte');">
<INPUT class="sr-only" TYPE="text" id="codeActe" NAME="codeActe" value="">
<div id="div_selection_acte" style="width:89%">
</div>
</div>
</td>
</tr>
</tbody>
</table>
<div class="row" id="totam_donnees">
<div id="div_prestations" class="col-12">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:7pt;">
<thead>
<tr>
<th width="5%" style='text-align:center'> Suppr </th>
<th colspan="2" style="text-align:center"> <?= _("Actes ajoutés au décompte") ?> </th>
<th style="text-align:center"> <?= _("P U") ?> </th>
<th style="text-align:center"> <?= _("Qtité") ?> </th>
<th style="text-align:center"> <?= _("P T") ?> </th>
<th style="text-align:center"> <?= _("T M") ?> </th>
<th style="text-align:center"> <?= _("Mtt TM") ?> </th>
<th style="text-align:center"> <?= _("A Remb") ?> </th>
<th style="text-align:center"> <?= _("Dépass") ?> </th>
<th style="text-align:center"> <?= _("Motif") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($prestations as $prestation):
$idPrestationactes=$this->nettoyer($prestation['id']);
$idLivre=$this->nettoyer($prestation['id']);
$ententePrealable=$this->nettoyer($prestation['ententePrealable']);
$valeurActe = $this->nettoyer($prestation['valeurActe']);
$codeGarantie=$this->nettoyer($prestation['codeGarantie']);
if (est_anglophone())
{
$libelleActe = $this->nettoyer($prestation['libelleActeEng']);
}
else
{
$libelleActe = $this->nettoyer($prestation['libelleActe']);
}
$tm=$this->nettoyer($prestation['tm']);
$codeMotifDepassement = $this->nettoyer($prestation['codeMotifDepassement']);
$motif = $this->nettoyer($prestation['motif']);
$tarif = $this->nettoyer($prestation['tarif']);
?>
<?php if($ententePrealable=='2'): ?>
<tr valign="top" style="background-color: yellow;">
<?php elseif($ententePrealable=='1'): ?>
<tr valign="top" style="background-color: #00ff00;">
<?php elseif($ententePrealable=='9'): ?>
<tr valign="top" style="background-color: red;color:white;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<td>
<button type="button" class="form-control btn btn-danger" onClick="javascript:retirer_un_acte_selection_dec(<?= $idPrestationactes ?>);">
<i class="fa fa-times" aria-hidden="true"></i>
</button>
</td>
<td align='center'> <?= $codeGarantie ?> </td>
<td align='center'> <?= $libelleActe ?> </td>
<td align='center' width="13%">
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué")?>" onClick='javascript:alert_ebene("<?= $tarif ?>, <?= $tarif ?>");'>
<?= format_N($valeurActe) ?>
</button>
</td>
<td align='center' width="8%">
<?= $this->nettoyer($prestation['quantite']) ?>
</td>
<td align='center'> <?= format_N($this->nettoyer($prestation['fraisReel'])) ?></td>
<td align='center'> <?= $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_ebene('<?= $motif ?>', '<?= $motif ?>');">
<?= $codeMotifDepassement ?>
</button>
</td>
<?php else: ?>
<td > </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
<tr style='background-color:white'>
<td colspan="11" height="8"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>