127 lines
5.5 KiB
PHP
Executable File
127 lines
5.5 KiB
PHP
Executable File
<?php
|
|
$actVisible = $_SESSION['p_actVisible'];
|
|
//Ajaxactesmedicauxselectproforma
|
|
?>
|
|
|
|
<div id="div_prestations" style="width:100%" >
|
|
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
|
|
<tbody>
|
|
<tr>
|
|
<td width="10%"> <?= _("Réclamé") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($prestations_total['fraisReel']) ?>" readonly style="text-align: center; font-size:12pt; background-color:blue;color:white;" > </td>
|
|
|
|
<?php if ($tm < "100"): ?>
|
|
<td align="center" width="13%"> <?= _("Part Assuré") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($prestations_total['montantTm']) ?>" readonly style="text-align: center; font-size:12pt; background-color:rgba(255, 0, 127);color:white;" > </td>
|
|
<td align="center" > <?= _("A Rembourser") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($prestations_total['montantArembourser']) ?>" readonly style="text-align: center; font-size:12pt; background-color:#ba74d4;color:white;" > </td>
|
|
<?php else: ?>
|
|
<td align="center" width="13%"> <?= _("Part Assuré") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($tm) ?>" readonly style="text-align: center; font-size:12pt; background-color:rgba(255, 0, 127);color:white;" > </td>
|
|
|
|
<td align="center" > <?= _("A Remb.") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($prestations_total['fraisReel']-$tm) ?>" readonly style="text-align: center; font-size:12pt; background-color:#ba74d4;color:white;" > </td>
|
|
|
|
<?php endif; ?>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:7pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="5%" style='text-align:center'> <= </th>
|
|
<th style="text-align:center"> <?= _("Actes (".count($prestations).")") ?> </th>
|
|
<th width="15%" style="text-align:center"> <?= _("Prix Unitaire") ?> </th>
|
|
<th width="13%" style="text-align:center"> <?= _("Qté") ?> </th>
|
|
<th width="13%"style="text-align:center"> <?= _("Prix Total") ?> </th>
|
|
<?php if ($tm < "100"): ?>
|
|
<th width="13%" style="text-align:center"> <?= _("Montant TM") ?> </th>
|
|
<th width="13%" style="text-align:center"> <?= _("A Rembourser") ?> </th>
|
|
<?php endif; ?>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="4" style='text-align:center'> Total </td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['fraisReel'])) ?></td>
|
|
<?php if ($tm < "100"): ?>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['montantTm'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['montantArembourser'])) ?></td>
|
|
<?php endif; ?>
|
|
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach ($prestations as $prestation):
|
|
$idProforma=$this->nettoyer($prestation['id']);
|
|
$supprimable = $prestation['supprimable'];
|
|
$codeTypePrestation=$this->nettoyer($prestation['codeTypePrestation']);
|
|
$ententePrealable=$this->nettoyer($prestation['ententePrealable']);
|
|
$autorisation=$this->nettoyer($prestation['autorisation']);
|
|
|
|
//var_dump($codeTypePrestation);
|
|
$codeTarifActe=$this->nettoyer($prestation['codeTarifActe']);
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActeEng']);
|
|
}
|
|
else
|
|
{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActe']);
|
|
}
|
|
|
|
$codeActe = $this->nettoyer($prestation['codeActe']);
|
|
|
|
if($actVisible!="1")
|
|
{
|
|
$libelleActe = $codeActe;
|
|
}
|
|
|
|
$acteChambre=$this->nettoyer($prestation['acteChambre']);
|
|
?>
|
|
|
|
<tr valign="top">
|
|
<?php if ($acteChambre=="1"): ?>
|
|
<td> </td>
|
|
<?php else: ?>
|
|
<td> <input class = "form-control btn btn-danger" type="button" value="<=" onClick="javascript:supprimer_acte_medical_selection_proforma('<?= $idProforma ?>', '<?= $codeTypePrestation ?>');"> </td>
|
|
<?php endif; ?>
|
|
<td align='center'> <?= $libelleActe ?> </td>
|
|
|
|
<td align='center'>
|
|
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($prestation['valeurActe'])) ?>"
|
|
Onchange="ajax_maj_prix_acte_proforma('<?=$idProforma?>', this.value, this);" onBlur="formatMonetaire(this);" onkeyup="controle_numerique(this);" onFocus="formatNumerique(this);">
|
|
</td>
|
|
|
|
|
|
<?php if ($acteChambre=="0"): ?>
|
|
<td align='center'>
|
|
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($prestation['quantite']) ?>"
|
|
Onchange="ajax_maj_qte_acte_proforma('<?=$idProforma?>', this.value, this);">
|
|
</td>
|
|
<?php else: ?>
|
|
<td align='center'>
|
|
<?= $this->nettoyer($prestation['quantite']) ?>
|
|
</td>
|
|
<?php endif; ?>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['fraisReel'])) ?></td>
|
|
<?php if ($tm < "100"): ?>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['montantTm'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['montantArembourser'])) ?></td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|