CHANGES- BDS Hide and Show of insurer and tpa based on policy id - Vadivel j 2025-08-07

This commit is contained in:
vadivelJ96 2025-08-07 11:20:03 +05:30
parent 83e6f0bfe1
commit 3d53967e40
2 changed files with 31 additions and 5 deletions

View File

@ -193,7 +193,7 @@
<div id="collapseThree" class="collapse show" aria-labelledby="headingOne" data-parent="#accordion_2">
<div class="row">
<div class="form-group col-md-3">
<div class="form-group col-md-3" id="tpa_endorse_div">
<label for="tpa"> TPA <span id="tpa_danger"class="text-danger"></span></label>
<select class="form-control readonly-select" id="tpa" name="tpa" >
<option value="" selected>Select TPA</option>
@ -259,12 +259,12 @@
<input type="text" class="form-control" id="endorse_eff_date" name="endorse_eff_date" placeholder="DD/MM/YYYY" >
</div>
<div class="form-group col-md-3">
<div class="form-group col-md-3" id="no_of_insured_endorse_div">
<label for="addon_policy">No of Insured<span id="base_danger"class="text-danger"></span></label>
<input type="text" class="form-control" id="emp_count" name="emp_count" placeholder="Enter Employeee" onkeypress="return onlyNumbers(event)">
</div>
<div class="form-group col-md-3">
<div class="form-group col-md-3" id="no_of_dependents_endorse_div">
<label for="addon_policy">No of Dependents<span id="base_danger" class="text-danger"></span></label>
<input type="text" class="form-control" id="dependent_count" name="dependent_count" placeholder="Enter Dependent" onkeypress="return onlyNumbers(event)">
</div>
@ -606,6 +606,16 @@ $(document).ready(function(){
$('#is_cd_reduce_from_bds').prop('disabled',false)
}
if( policy_type_id > 7 ){
$('#tpa_endorse_div').hide();
$('#no_of_insured_endorse_div').hide();
$('#no_of_dependents_endorse_div').hide();
}else{
$('#tpa_endorse_div').show();
$('#no_of_insured_endorse_div').show();
$('#no_of_dependents_endorse_div').show();
}
// console.log('client_id', client_id);
// console.log('client_policy_id', client_policy_id);

View File

@ -521,12 +521,12 @@
</select>
</div>
<div class="form-group col-md-3">
<div class="form-group col-md-3" id="no_of_insured_div">
<label for="addon_policy">No of Insured<span id="base_danger"class="text-danger"></span></label>
<input type="text" class="form-control" id="emp_count" name="emp_count" placeholder="Enter Employeee" onkeypress="return onlyNumbers(event)">
</div>
<div class="form-group col-md-3">
<div class="form-group col-md-3" id="no_of_dependents_div">
<label for="addon_policy">No of Dependents<span id="base_danger" class="text-danger"></span></label>
<input type="text" class="form-control" id="dependent_count" name="dependent_count" placeholder="Enter Dependent" onkeypress="return onlyNumbers(event)">
</div>
@ -1561,12 +1561,28 @@ $(document).ready(function(){
$('#client_type option[value="2"]').show();
}
if(value == 1 || value == 2 || value == 3 || value == 4 || value == 5 || value == 38 || value == 40){
$('#tpa_div').hide();
}else{
$('#tpa_div').show();
}
if( value == 38 || value == 40 ){
$('#tpa_div').hide();
}
else if(value > 7){
$('#tpa_div').hide();
$('#no_of_insured_div').hide();
$('#no_of_dependents_div').hide();
}
else{
$('#tpa_div').show();
$('#no_of_insured_div').show();
$('#no_of_dependents_div').show();
}
if(value == 1 || value == 2 || value == 3 || value == 4 || value == 5 || value == 6 || value == 7){
$('#is_cd_reduce_from_bds').prop('disabled',true).prop('checked', false)
}else{