191 lines
8.4 KiB
PHP
Executable File
191 lines
8.4 KiB
PHP
Executable File
<div id="livraison">
|
|
<div id="recap">
|
|
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
|
|
<tbody>
|
|
<tr>
|
|
<td align="center"> <?= _("Réclamé") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($prescription['fraisReelLivre'])) ?>" readonly style="text-align: center; font-size:14pt; font-weight:bold;"> </td>
|
|
|
|
<td align="center"> <?= _("Part Assuré") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($prescription['montantTmLivre']+$prescription['depassementLivre'])) ?>" readonly style="text-align: center; font-size:14pt; font-weight:bold; color:red;"> </td>
|
|
|
|
<td align="center"> <?= _("A Rembourser") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($prescription['fraisRetenuLivre'])) ?>" readonly style="text-align: center; font-size:14pt; font-weight:bold;"> </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="div_statutacte">
|
|
|
|
</div>
|
|
|
|
<div id="div_messages">
|
|
</div>
|
|
|
|
<div id="non_livre">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:10pt;'>
|
|
<thead>
|
|
<tr>
|
|
<th width="5%" style="text-align:center" > <input class="form-control btn btn-primary" type="button" value=" + + " onClick="javascript:ajouterexamen_tous();" style='font-size:10pt;' > </th>
|
|
<th colspan="2"> <?= _("Examens ou Radios à facturer") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Prix Unitaire") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("Qté") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Prix Total") ?> </th>
|
|
<!--
|
|
<th width="10%" style="text-align:center"> <?= _("T M") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Remb") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Dépass") ?> </th>
|
|
-->
|
|
<th width ="5%" style="text-align:center"> <?= _("Accord") ?> </th>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($detailnonlivres as $detailnonlivre):
|
|
$idNonLivre=$this->nettoyer($detailnonlivre['id']);
|
|
$valeurActe = $this->nettoyer($detailnonlivre['valeurActe']);
|
|
$ententePrealable = $this->nettoyer($detailnonlivre['ententePrealable']);
|
|
$codeActe = $this->nettoyer($detailnonlivre['codeActe']);
|
|
$libelleActe = $this->nettoyer($detailnonlivre['libelleActe']);
|
|
|
|
|
|
$codeGarantie = $this->nettoyer($detailnonlivre['codeGarantie']);
|
|
$tarif = $this->nettoyer($detailnonlivre['tarif']);
|
|
?>
|
|
<tr valign="top">
|
|
<?php if($valeurActe=="0") : ?>
|
|
<td width="5%" align='center'> </td>
|
|
<?php else: ?>
|
|
<?php if($ententePrealable=='2'): ?>
|
|
<td align='center' style="background-color: yellow;" > W </td>
|
|
<?php elseif($ententePrealable=='1'): ?>
|
|
<td align='center' style="background-color: #00ff00;" > <input type="button" value=" + " onClick="javascript:ajouterexamen('<?= $idNonLivre ?>', '<?= $ententePrealable ?>', '<?= $codeActe ?>', '<?= $codeGarantie ?>');"> </td>
|
|
<?php elseif($ententePrealable=='9'): ?>
|
|
<td align='center' style="background-color: red; color:white;" > R </td>
|
|
<?php else: ?>
|
|
<td width="5%" align='center'> <input type="button" value=" + " onClick="javascript:ajouterexamen('<?= $idNonLivre ?>', '<?= $ententePrealable ?>', '<?= $codeActe ?>', '<?= $codeGarantie ?>');"></td>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<td align='center' > <?= $codeGarantie ?> </td>
|
|
<td > <?= $libelleActe ?> </td>
|
|
|
|
<td align='center'>
|
|
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué") ?>" onClick='javascript:tarif_applique("<?= $tarif ?>");'>
|
|
<?= format_N($this->nettoyer($detailnonlivre['valeurActe'])) ?>
|
|
</button>
|
|
</td>
|
|
|
|
<td align='center' > <?= $this->nettoyer($detailnonlivre['quantite']) ?> </td>
|
|
<td align='center' > <?= format_N($this->nettoyer($detailnonlivre['fraisReel'])) ?> </td>
|
|
|
|
<td align='center' > <?= $ententePrealable ?> </td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="livre">
|
|
<?php
|
|
$nbLivre = 0;
|
|
?>
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:10pt;'>
|
|
<thead>
|
|
<tr>
|
|
<th width="5%" style="text-align:center" > <input class="form-control btn btn-primary" type="button" value=" - - " onClick="javascript:retirerexamen_tous();" style='font-size:10pt;' > </th>
|
|
<th > <?= _("Examens ou Radios effectués") ?> </th>
|
|
|
|
<th width="10%" style="text-align:center"> <?= _("Prix Unitaire") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("Qté") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Prix Total") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("Taux") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Montant TM") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Remb") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Dépass") ?> </th>
|
|
<th width ="5%" style="text-align:center"> <?= _("Motif") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="4" style='text-align:center'> Total </td>
|
|
<td align='center'><?= format_N($this->nettoyer($prescription['fraisReelLivre'])) ?></td>
|
|
<td> </td>
|
|
<td align='center'><?= format_N($this->nettoyer($prescription['montantTmLivre'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prescription['montantArembourserLivre'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prescription['depassementLivre'])) ?></td>
|
|
<td> </td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
<?php foreach ($detaillivres as $detaillivre):
|
|
$idLivre=$this->nettoyer($detaillivre['id']);
|
|
$ententePrealable = $this->nettoyer($detaillivre['ententePrealable']);
|
|
$libelleActe = $this->nettoyer($detaillivre['libelleActe']);
|
|
$codeActe = $this->nettoyer($detaillivre['codeActe']);
|
|
|
|
/*
|
|
if($actVisible!="1")
|
|
{
|
|
$libelleActe = $codeActe;
|
|
}
|
|
*/
|
|
|
|
$tm = $this->nettoyer($detaillivre['tm']);
|
|
|
|
$taux = (100-$tm)."%";
|
|
|
|
$codeMotifDepassement = $this->nettoyer($detaillivre['codeMotifDepassement']);
|
|
|
|
$motif = $this->nettoyer($detaillivre['motif']);
|
|
$motifEng = $this->nettoyer($detaillivre['motifEng']);
|
|
|
|
|
|
$tarif = $this->nettoyer($detaillivre['tarif']);
|
|
$nbLivre++;
|
|
?>
|
|
|
|
<tr valign="top">
|
|
<td align='center'> <input type="button" value=" - " onClick="javascript:retirerexamen('<?= $idLivre ?>');"></td>
|
|
<td > <?= $libelleActe ?> </td>
|
|
<td align='center'>
|
|
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué") ?>" onClick='javascript:tarif_applique("<?= $tarif ?>");'>
|
|
<?= format_N($this->nettoyer($detaillivre['valeurActe'])) ?>
|
|
</button>
|
|
</td>
|
|
<td align='center'>
|
|
<?= $this->nettoyer($detaillivre['quantite']) ?>
|
|
</td>
|
|
<td align='center'> <?= format_N($this->nettoyer($detaillivre['fraisReel'])) ?> </td>
|
|
<td align='center'> <?= $taux ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($detaillivre['montantTm'])) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($detaillivre['montantArembourser'])) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($detaillivre['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; ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="10" height="5"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<input class="sr-only" type="text" id="nbLivre" name="nbLivre" value="<?= $nbLivre ?>" >
|
|
|
|
</div>
|
|
|
|
<div id="div_fraisExclu">
|
|
<input class="sr-only" type="text" id="fraisExclu" name="fraisExclu" value="0" >
|
|
</div>
|
|
|
|
</div>
|