166 lines
7.0 KiB
PHP
Executable File
166 lines
7.0 KiB
PHP
Executable File
<?php
|
|
$actVisible = $_SESSION['p_actVisible'];
|
|
?>
|
|
|
|
<div id="div_actes" class="col-xs-4" style="padding-right:1px;">
|
|
<div id="listeacte">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:7pt;">
|
|
<thead>
|
|
<tr>
|
|
<th style='text-align:center'> <?= _("Actes (".count($actes).")") ?> </th>
|
|
<th width="15%" style='text-align:center'> <?= _("Prix") ?> </th>
|
|
<th width="5%" style='text-align:center'> => </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($actes as $acte):
|
|
$codeActe=$this->nettoyer($acte['codeActe']);
|
|
$act_ententePrealable=$this->nettoyer($acte['ententePrealable']);
|
|
$act_exclu=$this->nettoyer($acte['exclu']);
|
|
$act_chirurgie=$this->nettoyer($acte['chirurgie']);
|
|
$act_valeurActe=$this->nettoyer($acte['valeurActe']);
|
|
$act_montantTm=$this->nettoyer($acte['montantTm']);
|
|
$act_aRembourser=$this->nettoyer($acte['montantArembourser']);
|
|
|
|
$libelleActe = $this->nettoyer($acte['libelleActe']);
|
|
|
|
if($actVisible!="1")
|
|
{
|
|
$libelleActe = $codeActe;
|
|
}
|
|
|
|
?>
|
|
<tr valign="top">
|
|
<td ><?= $libelleActe ?></td>
|
|
<td align='center'> <?= format_N($act_valeurActe) ?></td>
|
|
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_un_acte_selection_proforma('<?=$codeActe?>', '<?=$act_valeurActe?>', '<?=$act_montantTm?>', '<?=$act_aRembourser?>' , '<?=$act_ententePrealable?>');" ></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="div_prestations" class="col-xs-8" >
|
|
<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;
|
|
}
|
|
|
|
?>
|
|
|
|
<tr valign="top">
|
|
<?php if ($codeTarifActe=="CHAMB"): ?>
|
|
<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 ($codeTarifActe!="CHAMB"): ?>
|
|
<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>
|