232 lines
11 KiB
PHP
Executable File
232 lines
11 KiB
PHP
Executable File
<div id="livraison">
|
|
<?php
|
|
$nbActesMonture = $this->nettoyer($prescription['nbActesMonture']);
|
|
|
|
$idOptique = $_SESSION['idOptique'];
|
|
|
|
$idPrestationactes = $this->nettoyer($prescription['idPrestationactes']);
|
|
|
|
?>
|
|
<div id="recap">
|
|
<?php if($idPrestationactes=="0" || $codeReponseEntentePrealable == "1"): ?>
|
|
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
|
|
<tbody>
|
|
<tr>
|
|
<td align="center"width="10%" style="font-weight:bold;"> <?= _("Réclamé") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($prescription['fraisReelLivre']) ?>" readonly style="text-align: center; font-size:12pt; font-weight:bold;" > </td>
|
|
|
|
<td align="center" width="13%" style="font-weight:bold;"> <?= _("Part Assuré") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($prescription['fraisAssure']) ?>" readonly style="text-align: center; font-size:12pt; font-weight:bold; color:red;" > </td>
|
|
|
|
|
|
<td align="center" style="font-weight:bold;"> <?= _("A Rembourser") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($prescription['fraisRetenuLivre']) ?>" readonly style="text-align: center; font-size:12pt; font-weight:bold; " > </td>
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<div id="div_legende_couleur" style="width:100%; margin: 5px;">
|
|
<table class="table-responsive" style="width:50%; margin:auto;">
|
|
<tbody>
|
|
<tr>
|
|
<td style="font-weight:bold; text-align:left; background-color:#f8f8ff; text-decoration-line: underline;"> <?= _("Légende").":"; ?></td>
|
|
|
|
<td style="font-weight:bold; background-color:#f8f8ff; text-align:right;"> <?= _("Attente réponse:") ?></td>
|
|
<td width="4%" style="background-color:yellow"></td>
|
|
<td width="2%" style="background-color:#f8f8ff;"></td>
|
|
<td style="font-weight:bold; background-color:#f8f8ff; text-align:right;"><?= _("Accord assureur:") ?></td>
|
|
<td width="4%" style="background-color: #00ff00"></td>
|
|
<td width="2%" style="background-color:#f8f8ff;"></td>
|
|
<td style="font-weight:bold; background-color:#f8f8ff; text-align:right;"><?= _("Non garanti / refus:") ?></td>
|
|
<td width="4%" style="background-color: red;"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div id="livre">
|
|
<?php $nbLivre = 0; ?>
|
|
<div >
|
|
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Facturation") ?>" readonly > </td>
|
|
</div>
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:10pt;'>
|
|
<thead>
|
|
<tr>
|
|
<th colspan="4" style="text-align:center"> <?= _("Actes") ?> </th>
|
|
<th style="text-align:center" class="sr-only"> <?= _("Solde Plafond") ?> </th>
|
|
<th style="text-align:center;" width="5%"> <?= _("Accord") ?> </th>
|
|
<th style="text-align:center;" width="15%"> <?= _("Prix Unitaire") ?> </th>
|
|
<!--<th style="text-align:center"> <?= _("Quantité") ?> </th>-->
|
|
<th style="text-align:center;background-color:blue;color:white;"> <?= _("Total") ?> </th>
|
|
<th style="text-align:center"> <?= _("TM") ?> </th>
|
|
<th style="text-align:center"> <?= _("Montant TM") ?> </th>
|
|
<th style="text-align:center"> <?= _("A Rembourser") ?> </th>
|
|
<th style="text-align:center;background-color:red;color:white;"> <?= _("Dépassement") ?> </th>
|
|
<th style="text-align:center"> <?= _("Motif") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="6" align='center'> Total </td>
|
|
<td align='center'><?= format_N($this->nettoyer($detail_total['fraisReel'])) ?></td>
|
|
<td > </td>
|
|
<td align='center'><?= format_N($this->nettoyer($detail_total['montantTm'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($detail_total['montantArembourser'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($detail_total['depassement'])) ?></td>
|
|
<td ></td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
<?php
|
|
$i = 0;
|
|
foreach ($detaillivres as $v):
|
|
$idDetail = $this->nettoyer($v['id']);
|
|
$idDetailOptique= $this->nettoyer($v['idDetailOPtique']);
|
|
|
|
|
|
$libelleActe = $this->nettoyer($v['libelleActe']);
|
|
|
|
$plafond = format_N($this->nettoyer($v['plafond']));
|
|
|
|
$soldeNew = format_N($this->nettoyer($v['soldeNew']));
|
|
|
|
$ententePrealable = $this->nettoyer($v['ententePrealable']);
|
|
|
|
$codeMotifDepassement = $this->nettoyer($v['codeMotifDepassement']);
|
|
|
|
$motif = $this->nettoyer($v['motif']);
|
|
$motifEng = $this->nettoyer($v['motifEng']);
|
|
?>
|
|
|
|
<tr valign="top">
|
|
<?php if($idDemandeAccord == "0"): ?>
|
|
<td align='center'>
|
|
<button type="button" class="form-control btn btn-danger" onClick="javascript:supprimer_acte_opticien('<?= $idDetail ?>','<?= $codeReponseEntentePrealable ?>');">
|
|
<i class="fa fa-times" aria-hidden="true"></i>
|
|
</button>
|
|
</td>
|
|
<?php else: ?>
|
|
<td ></td>
|
|
<?php endif; ?>
|
|
<td align='center' colspan="3">
|
|
<!--<INPUT class="form-control" TYPE="text" value="<?= $libelleActe; ?>" disabled style='font-size:10pt;'> -->
|
|
<?= $libelleActe; ?>
|
|
</td>
|
|
<td align='center' width="13%" class="sr-only">
|
|
<!--<INPUT class="form-control text-center" TYPE="text" value="<?= $plafond; ?>" disabled style='font-size:10pt;'>-->
|
|
<?= $plafond; ?>
|
|
</td>
|
|
|
|
<?php if($ententePrealable<>"0"): ?>
|
|
<?php if($ententePrealable=='2'): ?>
|
|
<td align='center' style="background-color: yellow;"> <input type="checkbox" checked disabled> </td>
|
|
<?php elseif($ententePrealable=='1'): ?>
|
|
<td align='center' style="background-color: #00ff00;"> <input type="checkbox" checked disabled> </td>
|
|
<?php elseif($ententePrealable=='9'): ?>
|
|
<td align='center' style="background-color: red;color:white;"> <input type="checkbox" checked disabled> </td>
|
|
<?php else: ?>
|
|
<td align='center'> <input type="checkbox" checked disabled> </td>
|
|
<?php endif; ?>
|
|
<?php else: ?>
|
|
<td align='center' > <input type="checkbox" disabled></td>
|
|
<?php endif; ?>
|
|
|
|
<?php if($ententePrealable=='3' || $ententePrealable=='0' || $ententePrealable=='2' || $ententePrealable=='1'): ?>
|
|
<?php if ($idDemandeAccord != "0") :?>
|
|
<td align='center' width="10%">
|
|
<!--<INPUT class="form-control text-center" id="valeurActe" name="valeurActe" TYPE="text" value="<?= format_N($this->nettoyer($v['valeurActe'])) ?>"
|
|
disabled style='font-size:10pt;'>-->
|
|
<?= format_N($this->nettoyer($v['valeurActe'])) ?>
|
|
</td>
|
|
<?php else: ?>
|
|
<td align='center' width="10%">
|
|
<INPUT class="form-control text-center" id="valeurActe" name="valeurActe" TYPE="text" value="<?= format_N($this->nettoyer($v['valeurActe'])) ?>"
|
|
onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);" onfocus="formatNumerique(this)"
|
|
onChange="ajax_maj_valeurActe_detailoptique('<?= $idDetail?>', this.value, this);" style='font-size:10pt;'>
|
|
</td>
|
|
<?php endif; ?>
|
|
|
|
<?php elseif($ententePrealable=='9'): ?>
|
|
<td colspan="2" align='center' width="8%">
|
|
<INPUT TYPE="button" class="form-control" style="background-color:red; color:#fff;" value="Accord refusé" style='font-size:10pt;'>
|
|
</td>
|
|
<?php endif; ?>
|
|
|
|
|
|
<td align='center' width="10%">
|
|
<!-- <INPUT class="form-control text-center" TYPE="text" value="<?= format_N($this->nettoyer($v['fraisReel'])) ?>" disabled style='font-size:10pt;'>-->
|
|
<?= format_N($this->nettoyer($v['fraisReel'])) ?>
|
|
</td>
|
|
|
|
<td align='center' width="6%">
|
|
<!-- <INPUT class="form-control text-center" TYPE="text" value="<?= $this->nettoyer($v['tm']) ?>" disabled style='font-size:10pt;'>-->
|
|
<?= $this->nettoyer($v['tm']) ?>
|
|
</td>
|
|
|
|
<td align='center' width="10%">
|
|
<!-- <INPUT class="form-control text-center" TYPE="text" value="<?= format_N($this->nettoyer($v['montantTm'])) ?>" disabled style='font-size:10pt;'>-->
|
|
<?= format_N($this->nettoyer($v['montantTm'])) ?>
|
|
</td>
|
|
<td align='center' width="10%">
|
|
<!-- <INPUT class="form-control text-center" TYPE="text" value="<?= format_N($this->nettoyer($v['montantArembourser'])) ?>" disabled style='font-size:10pt;'>-->
|
|
<?= format_N($this->nettoyer($v['montantArembourser'])) ?>
|
|
</td>
|
|
|
|
<td align='center' width="10%" >
|
|
<!-- <INPUT class="form-control text-center" TYPE="text" value="<?= format_N($this->nettoyer($v['depassement'])) ?>" disabled style='font-size:10pt;'>-->
|
|
<?= format_N($this->nettoyer($v['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>
|
|
|
|
<tr>
|
|
<?php if ($idDemandeAccord == "0") :?>
|
|
<td colspan="12">
|
|
<INPUT TYPE="button" class="form-control btn btn-info" style="font-weight:bold; font-size:12pt;" id="btn-demande-accord" name="btn-demande-accord" value="<?= _("Envoyer une demande d'accord préalable...") ?>"
|
|
onclick="javascript:demander_accord_opt('<?= $idDetailOptique ?>','<?= $codeReponseEntentePrealable ?>');">
|
|
</td>
|
|
<?php elseif ($codeReponseEntentePrealable != "1") :?>
|
|
|
|
<td colspan="12">
|
|
<marquee behavior="scroll" direction="left" scrollamount="10" style="color:red; background-color:yellow; font-size:14pt">
|
|
<?= _("Veuillez patienter, votre demande sera traitée dans un court instant! Merci.") ?>
|
|
</marquee>
|
|
<INPUT TYPE="button" class="form-control btn btn-primary" style="font-weight:bold; font-size:12pt;" id="btn-demande-accord" name="btn-demande-accord" value="<?= _("Modifier votre prix unitaire") ?>"
|
|
onclick="javascript:modifier_prix_opt('<?= $idDetailOptique ?>');">
|
|
</td>
|
|
<?php else: ?>
|
|
<td colspan="12"></td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
|
|
</tbody>
|
|
</table>
|
|
<input class="sr-only" type="text" id="nbLivre" name="nbLivre" value="<?= $nbLivre ?>" >
|
|
|
|
<input class="sr-only" type="text" id="prixActe" name="prixActe" value="<?= $this->nettoyer($prescription['fraisRetenuLivre']) ?>" >
|
|
<input class="sr-only" type="text" id="cout" name="cout" value="<?= $this->nettoyer($prescription['fraisReelLivre']) ?>" >
|
|
<input class="sr-only" type="text" id="montantTm" name="montantTm" value="<?= $this->nettoyer($prescription['montantTmLivre']) ?>" >
|
|
<input class="sr-only" type="text" id="fraisExcluLivre" name="fraisExcluLivre" value="<?= $this->nettoyer($prescription['fraisExcluLivre']) ?>" >
|
|
<input class="sr-only" type="text" id="depassement" name="depassement" value="<?= $this->nettoyer($prescription['depassement']) ?>" >
|
|
|
|
<input class="sr-only" type="text" id="cout_f" name="cout_f" value="<?= format_N($this->nettoyer($prescription['fraisReelLivre'])) ?>" >
|
|
<input class="sr-only" type="text" id="montantTm_f" name="montantTm_f" value="<?= format_N($this->nettoyer($prescription['montantTmLivre'])) ?>" >
|
|
</div>
|
|
</div>
|