Update health_care_sheet_update_execution form
This commit is contained in:
parent
0de17f1d87
commit
ee88414d9e
|
@ -89,30 +89,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
|
||||
</div>
|
||||
|
||||
<div class="form-group mt-2" style="overflow-x:auto;">
|
||||
<div class="table-title">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<label for="nom"
|
||||
class="col-form-label"><?php echo $this->lang->line('performances'); ?></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table id="prestations" class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php echo $this->lang->line('act_code'); ?> </th>
|
||||
<th><?php echo $this->lang->line('Montant'); ?></th>
|
||||
<th><?= $this->lang->line('moderator_ticket'); ?></th>
|
||||
<th><?= $this->lang->line('insurance_amount'); ?></th>
|
||||
<th><?= $this->lang->line('home_visit_fees'); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="form-group mt-4" style="overflow-x:auto;">
|
||||
<div class="form-group mt-4" style="overflow-x:auto;" id="exams-div">
|
||||
<div class="table-title">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
|
@ -136,7 +113,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
</table>
|
||||
</div>
|
||||
|
||||
<div class="form-group mt-4" style="overflow-x:auto;">
|
||||
<div class="form-group mt-4" style="overflow-x:auto;" id="prescriptions-div">
|
||||
<div class="table-title">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
|
@ -214,7 +191,8 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
$(document).ready(function (){
|
||||
$('#execution').hide();
|
||||
$('#patient-details').hide();
|
||||
|
||||
$('#prescriptions-div').hide();
|
||||
$('#exams-div').hide();
|
||||
// Get The Data
|
||||
const insured = JSON.parse(sessionStorage.getItem('insured'));
|
||||
if(insured && Array.isArray(insured)){
|
||||
|
@ -295,17 +273,11 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
$('#sheet-form').find('input[name="practitioner_firstname"]').val(consultation.practitioner_firstname || '')
|
||||
$('#sheet-form').find('select[name="practitioner_provider_class_id"]').val(consultation.practitioner_provider_class_id)
|
||||
|
||||
$("#prestations tbody").children().remove();
|
||||
$.each(consultation.performances, function (j, it) {
|
||||
$('#prestations').append('<tr>' +
|
||||
'<td>'+(it.act.code|| '')+'</td>' +
|
||||
'<td>'+(it.amount_formatted || '')+'</td>' +
|
||||
'<td>'+(it.moderator_ticket_formatted || '')+'</td>' +
|
||||
'<td>'+(it.insurance_amount_formatted || '')+'</td>' +
|
||||
'<td>'+(it.home_visit_fees_formatted || '')+'</td>' +
|
||||
'</tr>')
|
||||
});
|
||||
|
||||
if(consultation.exams.length !== 0){
|
||||
$('#exams-div').show();
|
||||
}else{
|
||||
$('#exams-div').hide();
|
||||
}
|
||||
const actions2 = '<a class="add add2" title="Add" data-toggle="tooltip"><i class="material-icons"></i></a>\n' +
|
||||
' <a class="edit edit2" title="Edit" data-toggle="tooltip"><i class="material-icons"></i></a>\n';
|
||||
|
||||
|
@ -321,7 +293,11 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
});
|
||||
|
||||
|
||||
|
||||
if(consultation.prescriptions.length !== 0){
|
||||
$('#prescriptions-div').show();
|
||||
}else{
|
||||
$('#prescriptions-div').hide();
|
||||
}
|
||||
const actions3 = '<a class="add add3" title="Add" data-toggle="tooltip"><i class="material-icons"></i></a>\n' +
|
||||
' <a class="edit edit3" title="Edit" data-toggle="tooltip"><i class="material-icons"></i></a>\n';
|
||||
|
||||
|
|
Loading…
Reference in New Issue