185 lines
9.0 KiB
PHP
Executable File
185 lines
9.0 KiB
PHP
Executable File
<?php
|
|
$this->titre = "INTER-SANTE - Livraison monture uniquement";
|
|
?>
|
|
|
|
<script type="text/javascript">
|
|
|
|
</script>
|
|
|
|
<div id ="div_wait">
|
|
</div>
|
|
|
|
<div id="div_monture">
|
|
|
|
<input class="sr-only" type="text" id="dejaFacture" name="dejaFacture" value= "0">
|
|
|
|
<input style='text-align:center; font-size:11pt;' class="form-control" type="text"
|
|
value= "<?= _("Livraison Monture uniquement") ?>" readonly >
|
|
|
|
<div id="content">
|
|
<?php include 'flexcode/include/global.php'; ?>
|
|
</div>
|
|
|
|
<?php
|
|
$nbActesMonture = 1;
|
|
?>
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:10pt;'>
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align:center"> <?= _("A Livrer") ?> </th>
|
|
<th width="15%" style="text-align:center"> <?= _("Monture") ?> </th>
|
|
<th width="15%" style="text-align:center"> <?= _("Facture") ?> </th>
|
|
<th width="15%" style="text-align:center"> <?= _("Frais") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("T M") ?> </th>
|
|
<th width="15%" style="text-align:center"> <?= _("A Remb") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="3" style='text-align:center'> Total </td>
|
|
<td align='center'><?= format_N($this->nettoyer($prescription['fraisReelLivre'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prescription['montantTmLivre'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prescription['montantArembourserLivre'])) ?></td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
<?php foreach ($detaillivres as $detaillivre):
|
|
$idLivre = $this->nettoyer($detaillivre['id']);
|
|
|
|
$ententePrealable = $this->nettoyer($detaillivre['ententePrealableMont']);
|
|
?>
|
|
<input class="sr-only" type="text" id="ententePrealableMont" name="ententePrealableMont" value= "<?= $ententePrealable ?>" >
|
|
|
|
<?php if($ententePrealable=='2' || $ententePrealable=='3'): ?>
|
|
<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 align='center'> <?= _("Monture uniquement") ?> </td>
|
|
|
|
<?php if($nbActesMonture>0) : ?>
|
|
|
|
<?php if($ententePrealable=='0'): ?>
|
|
<td> <INPUT class="form-control" style='text-align: center; font-size:10pt;' TYPE="number" id="prixPrestataire" NAME="prixPrestataire" value="0" > </td>
|
|
|
|
<td align='center'>
|
|
<input class="sr-only" type="text" id="numeroFacture" name="numeroFacture" value= "" >
|
|
<INPUT class="form-control btn btn-primary" style="font-size:10pt;" TYPE="button" value="Autorisation ?" onClick="javascript:demander_accord_mont('<?= $idLivre ?>');" >
|
|
</td>
|
|
<?php elseif($ententePrealable=='2' || $ententePrealable=='3'): ?>
|
|
<td colspan="2" align='center'>
|
|
<input class="sr-only" type="text" id="numeroFacture" name="numeroFacture" value= "" >
|
|
<?= _("Attente Autorisation") ?>
|
|
</td>
|
|
<?php elseif($ententePrealable=='9'): ?>
|
|
<td colspan="2" align='center'>
|
|
<input class="sr-only" type="text" id="numeroFacture" name="numeroFacture" value= "" >
|
|
<?= _("Refusé") ?>
|
|
</td>
|
|
|
|
<?php else: ?>
|
|
<td><INPUT class="form-control" style='text-align:center; font-size:10pt;' TYPE="text" value="<?= format_N($this->nettoyer($detaillivre['monture'])) ?>" readonly > </td>
|
|
<td><INPUT class="form-control" style='font-size:10pt;' TYPE="text" id="numeroFacture" NAME="numeroFacture" value="<?= $this->nettoyer($prescription['numeroFacture']) ?>" ></td>
|
|
<?php endif; ?>
|
|
|
|
<?php else: ?>
|
|
<td>
|
|
<INPUT class="form-control" style='text-align:center; font-size:10pt;' TYPE="number" value="<?= $this->nettoyer($detaillivre['monture']) ?>"
|
|
onChange="this.value=supprimer_espace_nombre(this.value);if(controle_numerique(this)){maj_monture_temp_monture('<?=$idLivre?>', this.value);}">
|
|
</td>
|
|
<td><INPUT class="form-control" style='font-size:10pt;' TYPE="text" id="numeroFacture" NAME="numeroFacture" value="<?= $this->nettoyer($prescription['numeroFacture']) ?>" ></td>
|
|
<?php endif; ?>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($detaillivre['fraisReel'])) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($detaillivre['montantTm'])) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($detaillivre['montantArembourser'])) ?> </td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="6" height="3"></td>
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<div id="recap">
|
|
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
|
|
<tbody>
|
|
<tr>
|
|
<td > <?= _("Dépas") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($prescription['fraisExcluLivre'])) ?>" readonly style="text-align: center; font-size:12pt; color:red;" > </td>
|
|
|
|
<td align="center" > <?= _("Retenu") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($prescription['fraisRetenuLivre'])) ?>" readonly style="text-align: center; font-size:12pt; color:blue;" > </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
|
|
<thead>
|
|
<tr>
|
|
<th rowspan="2" style="text-align:center"> <?= _("Limites de la famille : Garanties") ?> </th>
|
|
<th rowspan="2" style="text-align:center"> <?= _("Limites") ?> </th>
|
|
<th rowspan="2" style="text-align:center"> <?= _("Solde Ant") ?> </th>
|
|
<th colspan="2" style="text-align:center;background-color:blue;color:white;"> <?= _("Nouvelles Consommations") ?> </th>
|
|
<th rowspan="2" style="text-align:center;background-color:red;color:white;"> <?= _("Dépassement") ?> </th>
|
|
<th rowspan="2" style="text-align:center"> <?= _("Retenu") ?> </th>
|
|
<th rowspan="2" style="text-align:center"> <?= _("Nouv Solde") ?> </th>
|
|
<th rowspan="2" style="text-align:center"> <?= _("Par tête?") ?> </th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th style="text-align:center;background-color:blue;color:white;" > <?= _("Garanties") ?> </th>
|
|
<th style="text-align:center;background-color:blue;color:white;" > <?= _("Sous Gar") ?> </th>
|
|
</tr>
|
|
|
|
</thead>
|
|
<tbody>
|
|
|
|
<?php foreach ($garantieadherent_temp as $garantieadherent):
|
|
$champApplication = $this->nettoyer($garantieadherent['champApplication']);
|
|
?>
|
|
<tr valign="top">
|
|
<td align='center'> <?= $this->nettoyer($garantieadherent['garantie'])?> </td>
|
|
<td align='center'><?= format_N($this->nettoyer($garantieadherent['plafond'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($garantieadherent['soldeOld'])) ?></td>
|
|
<td align='center' style='background-color:blue;color:white;'><?= format_N($this->nettoyer($garantieadherent['consommationNew'])) ?></td>
|
|
<td align='center' style='background-color:blue;color:white;'><?= format_N($this->nettoyer($garantieadherent['consommationSousGarantie'])) ?></td>
|
|
<td align='center' style='background-color:red;color:white;'><?= format_N($this->nettoyer($garantieadherent['fraisExclu'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($garantieadherent['fraisRetenu'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($garantieadherent['soldeNew'])) ?></td>
|
|
|
|
<?php if($champApplication=='1'): ?>
|
|
<td align='center'> <input type="checkbox" checked value="<?php echo $champApplication ; ?>" disabled ></td>
|
|
<?php else: ?>
|
|
<td align='center'> <input type="checkbox" value="<?php echo $champApplication ; ?>" disabled ></td>
|
|
<?php endif; ?>
|
|
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
<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="nbActesMonture" name="nbActesMonture" value= "<?= $nbActesMonture ?>" >
|
|
|
|
<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 id="loadingDiv" style="display: none">
|
|
<div class="ajax-mask"><div class="loading"><img src="Bootstrap/images/loading-spinner-grey.gif"/> <?= _("Veuillez patienter...") ?> </span></div></div>
|
|
</div>
|