production/Vue/Ajaxdetailfactureclassique/supprimerprestation.php
2025-12-01 16:12:12 +00:00

142 lines
7.0 KiB
PHP
Executable File

<table class="table table-striped table-bordered table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th rowspan="2" style='text-align:center'> <?= _("Suppr") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Garantie") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Actes") ?> </th>
<th rowspan="2" colspan="2" style="text-align:center"> <?= _("Réclamé") ?> </th>
<th colspan="3" style="text-align:center"> <?= _("Rejeté") ?> </th>
<th colspan="3" style="text-align:center"> <?= _("Exlusion") ?> </th>
<th colspan="2" style="text-align:center"> <?= _("Ticket Modérateur") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("A Remb") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Dépassement") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Motif") ?> </th>
</tr>
<tr>
<th style="text-align:center"> <?= _("Montant") ?> </th>
<th style="text-align:center"> <?= _("Motif") ?> </th>
<th style="text-align:center"> <?= _("Obs") ?> </th>
<th style="text-align:center"> <?= _("Montant") ?> </th>
<th style="text-align:center"> <?= _("Motif") ?> </th>
<th style="text-align:center"> <?= _("Obs") ?> </th>
<th style="text-align:center"> <?= _("Taux") ?> </th>
<th style="text-align:center"> <?= _("Montant") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($prestations as $prestation):
$idPrestation = $this->nettoyer($prestation['id']);
$codeGarantie = $this->nettoyer($prestation['codeGarantie']);
$libelleActe = mb_strtoupper($this->echapper($prestation['libelleActe'], 'UTF-8'));
$valeurActe = $this->nettoyer($prestation['valeurActe']);
$montantRejete = $this->nettoyer($prestation['montantRejete']);
$fraisExclu = $this->nettoyer($prestation['fraisExclu']);
$codeMotifRejet = $this->nettoyer($prestation['codeMotifRejet']);
$codeMotifExclusion = $this->nettoyer($prestation['codeMotifExclusion']);
$libellemotifRejet = $this->nettoyer($prestation['libellemotifRejet']);
$libellemotifRejet = $this->echapper($libellemotifRejet);
$libelleMotifExclusion = $this->nettoyer($prestation['libelleMotifExclusion']);
$libelleMotifExclusion = $this->echapper($libelleMotifExclusion);
$depassement = $this->nettoyer($prestation['depassement']);
$codeMotifDepassement = $this->nettoyer($prestation['codeMotifDepassement']);
$motif = $this->nettoyer($prestation['motif']);
$motifEng = $this->nettoyer($prestation['motifEng']);
?>
<tr valign="top">
<td>
<button type="button" class="form-control btn btn-danger" onClick="javascript:supprimer_prestation_classique('<?= $idPrestation ?>');">
<i class="fa fa-times" aria-hidden="true"></i>
</button>
</td>
<td align='center'> <?= $codeGarantie ?> </td>
<td align='center' width="15%" > <?= $this->dechapper($libelleActe) ?> </td>
<td align='center' width="7%" >
<INPUT style='text-align:center; font-size:8pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($prestation['valeurActe']) ?>"
onChange="ajax_maj_prix_acte_classique('<?=$idPrestation?>', this.value, this);">
</td>
<td align='center' width="8%" > <?= format_N($this->nettoyer($prestation['fraisReel'])) ?> </td>
<td align='center' width="7%" >
<INPUT style='text-align:center; font-size:8pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($prestation['montantRejete']) ?>"
onChange="ajax_maj_montant_rejete('<?=$idPrestation?>', this.value, this);">
</td>
<td width="13%" align="center">
<?php if($montantRejete!='0'): ?>
<!--<input style='text-align:center; font-size:8pt; background-color: yellow;' type="button" value="<?= $libellemotifRejet ?>" class="form-control"
onClick='javascript:init_maj_motif_rejet_rbcl(<?= $idPrestation ?>,"<?= $codeMotifRejet ?>", "<?= $libellemotifRejet ?>");'>-->
<select class="form-control selectpicker" data-live-search="true" id="codeMotifRejetPop" NAME="codeMotifRejetPop" required AUTOCOMPLETE="OFF" style='font-size:10pt;' onChange='javascript:enregistrer_motif_rejet_classique(<?= $idPrestation ?>,this.value);'>
<?php liste_options($motifrejets, $codeMotifRejet); ?>
</SELECT>
<?php endif; ?>
</td>
<td width="3%" align="center">
<?php if($montantRejete!='0'): ?>
<input style='text-align:center; font-size:8pt; background-color: yellow;' type="button" value="Obs" class="form-control"
onClick='javascript:init_maj_detail_rejet_rbcl(<?= $idPrestation ?>);'>
<?php endif; ?>
</td>
<td align='center' width="7%" >
<INPUT style='text-align:center; font-size:8pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($prestation['fraisExclu']) ?>"
onChange="ajax_maj_montant_exclu('<?=$idPrestation?>', this.value, this);">
</td>
<td width="13%" align="center">
<?php if($fraisExclu!='0'): ?>
<!--<input style='text-align:center; font-size:8pt; background-color: red; color : white' type="button" value="<?= $libelleMotifExclusion ?>" class="form-control"
onClick='javascript:init_maj_motif_exclusion_rbcl(<?= $idPrestation ?>,"<?= $codeMotifExclusion ?>", "<?= $libelleMotifExclusion ?>");'>-->
<select class="form-control selectpicker" data-live-search="true" id="codeMotifExclusionPop" NAME="codeMotifExclusionPop" required AUTOCOMPLETE="OFF" style='font-size:10pt;' onChange='javascript:enregistrer_motif_exclusion_classique(<?= $idPrestation ?>,this.value);'>
<?php liste_options($motifecxlusions, $codeMotifExclusion); ?>
</SELECT>
<?php endif; ?>
</td>
<td width="3%" align="center">
<?php if($fraisExclu!='0'): ?>
<input style='text-align:center; font-size:8pt; background-color: red; color : white' type="button" value="Obs" class="form-control"
onClick='javascript:init_maj_detail_exclusion_rbcl(<?= $idPrestation ?>);'>
<?php endif; ?>
</td>
<td align='center' width="4%" >
<INPUT style='text-align:center; font-size:8pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($prestation['tm']) ?>"
onChange="ajax_maj_tm_acte_rbcl('<?=$idPrestation?>', this.value, this);">
</td>
<td align='center' style='color:red;' width="5%" > <?= format_N($this->nettoyer($prestation['montantTm'])) ?> </td>
<td align='center' width="8%" > <?= format_N($this->nettoyer($prestation['montantArembourser'])) ?> </td>
<td align='center' width="8%" > <?= format_N($this->nettoyer($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 ?>","<?= $motifEng ?>");'>
<?= $codeMotifDepassement ?>
</button>
</td>
<?php else: ?>
<td > </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>