FIX_DEFAULT_TERMS_FOR_EDLI,GDLI
This commit is contained in:
parent
6629f61895
commit
22a97d335d
@ -87,8 +87,7 @@ label {
|
|||||||
<input type="hidden" name="client_policy_id" id="other_client_policy_id" />
|
<input type="hidden" name="client_policy_id" id="other_client_policy_id" />
|
||||||
<input type="hidden" name="policy_id" id="gpa_policy_id" />
|
<input type="hidden" name="policy_id" id="gpa_policy_id" />
|
||||||
<input type="hidden" id="emp_count" />
|
<input type="hidden" id="emp_count" />
|
||||||
<div class="row" style="margin-bottom: 10px;">
|
<div id="sumInsuredDiv" class="row" style="margin-bottom: 10px;">
|
||||||
<div id="sumInsuredDiv">
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label for="sumInsured">Sum Insured</label>
|
<label for="sumInsured">Sum Insured</label>
|
||||||
</div>
|
</div>
|
||||||
@ -104,8 +103,8 @@ label {
|
|||||||
<div id='numberToWordOthers' class="text-danger-2" ></div>
|
<div id='numberToWordOthers' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="sum_insured_add_more" ></div>
|
|
||||||
</div>
|
<div style="margin-top: 10px;margin-bottom:15px;" id="sum_insured_add_more" ></div>
|
||||||
<div id="append_html_for_other_policy_terms"></div>
|
<div id="append_html_for_other_policy_terms"></div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
@ -208,6 +207,7 @@ $("#otherPolicyTerms").submit(function(event) {
|
|||||||
$('.loader').fadeOut();
|
$('.loader').fadeOut();
|
||||||
$('.loader-mask').delay(350).fadeOut('slow');
|
$('.loader-mask').delay(350).fadeOut('slow');
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
location.reload();
|
||||||
},
|
},
|
||||||
error: function(xhr, status, error) {
|
error: function(xhr, status, error) {
|
||||||
console.error(xhr.responseText);
|
console.error(xhr.responseText);
|
||||||
@ -240,7 +240,6 @@ $('body').on('click', '.btnPolicyMaster', function() {
|
|||||||
|
|
||||||
$('#other_client_policy_id').val(client_policy_id);
|
$('#other_client_policy_id').val(client_policy_id);
|
||||||
|
|
||||||
// appendPolicyTermsHTML(policy_type_id);
|
|
||||||
|
|
||||||
var gpa_policy_type_id = $(this).attr('id');
|
var gpa_policy_type_id = $(this).attr('id');
|
||||||
// console.log('gpa_policy_type_id', gpa_policy_type_id)
|
// console.log('gpa_policy_type_id', gpa_policy_type_id)
|
||||||
@ -285,7 +284,7 @@ $('body').on('click', '.btnPolicyMaster', function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (res) {
|
if (res.data) {
|
||||||
|
|
||||||
//special conditions fields
|
//special conditions fields
|
||||||
let otherTermsJsonObjectSpecialCondition = JSON.parse(res.data);
|
let otherTermsJsonObjectSpecialCondition = JSON.parse(res.data);
|
||||||
@ -320,7 +319,7 @@ $('body').on('click', '.btnPolicyMaster', function() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!key.startsWith("special_condition") && !key.startsWith("sum_insured") && !key.startsWith("enrollment_display_key") ) {
|
if (!key.startsWith("special_condition") && !key.startsWith('multiple_sum_insured') && !key.startsWith("sum_insured") && !key.startsWith("enrollment_display_key") ) {
|
||||||
|
|
||||||
termsHTML = `
|
termsHTML = `
|
||||||
<div class="row" style="margin-bottom: 10px;">
|
<div class="row" style="margin-bottom: 10px;">
|
||||||
@ -400,6 +399,10 @@ $('body').on('click', '.btnPolicyMaster', function() {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
appendPolicyTermsHTML(policy_type_id);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -523,11 +526,9 @@ function appendPolicyTermsHTML(policy_type) {
|
|||||||
var termsHTML = ""
|
var termsHTML = ""
|
||||||
$('#append_html_for_other_policy_terms').empty();
|
$('#append_html_for_other_policy_terms').empty();
|
||||||
|
|
||||||
// if (policy_type == 7) {
|
if (policy_type == 7) {
|
||||||
|
|
||||||
// termsHTML = `
|
|
||||||
|
|
||||||
// <div class="form-group">
|
|
||||||
|
|
||||||
// <div class="row" style="margin-bottom: 10px;">
|
// <div class="row" style="margin-bottom: 10px;">
|
||||||
// <div class="col-md-6">
|
// <div class="col-md-6">
|
||||||
@ -547,105 +548,105 @@ function appendPolicyTermsHTML(policy_type) {
|
|||||||
// </div>
|
// </div>
|
||||||
|
|
||||||
// <div id="sum_insured_add_more" ></div>
|
// <div id="sum_insured_add_more" ></div>
|
||||||
|
termsHTML = `
|
||||||
|
|
||||||
// <div class="row" style="margin-bottom: 10px;">
|
<div class="form-group">
|
||||||
// <div class="col-md-6">
|
<div class="row" style="margin-bottom: 10px;">
|
||||||
// <label for="totalSumInsured">Policy Type</label>
|
<div class="col-md-6">
|
||||||
// </div>
|
<label for="totalSumInsured">Policy Type</label>
|
||||||
// <div class="col-md-6">
|
</div>
|
||||||
// <input type="text" name="policy_type" id="policy_type" class="form-control">
|
<div class="col-md-6">
|
||||||
// </div>
|
<input type="text" name="policy_type" id="policy_type" class="form-control">
|
||||||
// </div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
// <div class="row" style="margin-bottom: 10px;">
|
<div class="row" style="margin-bottom: 10px;">
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <label for="totalSumInsured">Existing Insurer</label>
|
<label for="totalSumInsured">Existing Insurer</label>
|
||||||
// </div>
|
</div>
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <input type="text" name="existing_insurer" id="existing_insurer" class="form-control">
|
<input type="text" name="existing_insurer" id="existing_insurer" class="form-control">
|
||||||
// </div>
|
</div>
|
||||||
// </div>
|
</div>
|
||||||
|
|
||||||
// <div class="row" style="margin-bottom: 10px;">
|
<div class="row" style="margin-bottom: 10px;">
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <label for="renewal_lives">Renewal Lives</label>
|
<label for="renewal_lives">Renewal Lives</label>
|
||||||
// </div>
|
</div>
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <input type="text" name="renewal_lives" id="renewal_lives" class="form-control">
|
<input type="text" name="renewal_lives" id="renewal_lives" class="form-control">
|
||||||
// </div>
|
</div>
|
||||||
// </div>
|
</div>
|
||||||
|
|
||||||
// <div class="row" style="margin-bottom: 10px;">
|
<div class="row" style="margin-bottom: 10px;">
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <label for="totalSumInsured">Total Sum Assured</label>
|
<label for="totalSumInsured">Total Sum Assured</label>
|
||||||
// </div>
|
</div>
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <input type="text" style="width: 100% !important;" class="form-control" name="total_sum_insured"
|
<input type="text" style="width: 100% !important;" class="form-control" name="total_sum_insured"
|
||||||
// id="total_sum_insured" onkeypress="return onlyNumbers(event)" onkeyup="formatNumber(this)">
|
id="total_sum_insured" onkeypress="return onlyNumbers(event)" onkeyup="formatNumber(this)">
|
||||||
// </div>
|
</div>
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// </div>
|
</div>
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <div id='numberToWordTotalSumInsured' class="text-danger-2"></div>
|
<div id='numberToWordTotalSumInsured' class="text-danger-2"></div>
|
||||||
// </div>
|
</div>
|
||||||
// </div>
|
</div>
|
||||||
|
|
||||||
// <div class="row" style="margin-bottom: 10px;display:true;">
|
<div class="row" style="margin-bottom: 10px;display:true;">
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <label for="lives_at_inception">Lives at Inception</label>
|
<label for="lives_at_inception">Lives at Inception</label>
|
||||||
// </div>
|
</div>
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <input type="text" name="lives_at_inception" id="lives_at_inception" class="form-control">
|
<input type="text" name="lives_at_inception" id="lives_at_inception" class="form-control">
|
||||||
// </div>
|
</div>
|
||||||
// </div>
|
</div>
|
||||||
|
|
||||||
// <div class="row" style="margin-bottom: 10px;display:true;">
|
<div class="row" style="margin-bottom: 10px;display:true;">
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <label for="totalSumInsured">Total Sum Insured at Inception</label>
|
<label for="totalSumInsured">Total Sum Insured at Inception</label>
|
||||||
// </div>
|
</div>
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <input type="text" name="total_sum_insured_at_inception" id="total_sum_insured_at_inception"
|
<input type="text" name="total_sum_insured_at_inception" id="total_sum_insured_at_inception"
|
||||||
// class="form-control" onkeypress="return onlyNumbers(event)" onkeyup="formatNumber(this)">
|
class="form-control" onkeypress="return onlyNumbers(event)" onkeyup="formatNumber(this)">
|
||||||
// </div>
|
</div>
|
||||||
// </div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
// <div class="row" style="margin-bottom: 10px;display:true;">
|
<div class="row" style="margin-bottom: 10px;display:true;">
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <label for="totalSumInsured">Premium at Inception (Excl GST)</label>
|
<label for="totalSumInsured">Premium at Inception (Excl GST)</label>
|
||||||
// </div>
|
</div>
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <input type="text" name="premium_at_inception" id="premium_at_inception" class="form-control">
|
<input type="text" name="premium_at_inception" id="premium_at_inception" class="form-control">
|
||||||
// </div>
|
</div>
|
||||||
// </div>
|
</div>
|
||||||
|
|
||||||
// <div class="row" style="margin-bottom: 10px;display:true;">
|
<div class="row" style="margin-bottom: 10px;display:true;">
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <label for="coverage">Coverage</label>
|
<label for="coverage">Coverage</label>
|
||||||
// </div>
|
</div>
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <input type="text" name="coverage " id="coverage" class="form-control">
|
<input type="text" name="coverage " id="coverage" class="form-control">
|
||||||
// </div>
|
</div>
|
||||||
// </div>
|
</div>
|
||||||
|
|
||||||
// <div class="row" style="margin-bottom: 10px;display:true;">
|
<div class="row" style="margin-bottom: 10px;display:true;">
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <label for="free_cover_limit">Free Cover Limit</label>
|
<label for="free_cover_limit">Free Cover Limit</label>
|
||||||
// </div>
|
</div>
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <input type="text" name="free_cover_limit" id="free_cover_limit" class="form-control">
|
<input type="text" name="free_cover_limit" id="free_cover_limit" class="form-control">
|
||||||
// </div>
|
</div>
|
||||||
// </div>
|
</div>
|
||||||
|
|
||||||
// </div>
|
</div>
|
||||||
|
|
||||||
// `
|
`
|
||||||
|
|
||||||
// } else if (policy_type == 6) {
|
} else if (policy_type == 6) {
|
||||||
|
|
||||||
// termsHTML = `
|
|
||||||
|
|
||||||
// <div class="form-group EDLI">
|
|
||||||
|
|
||||||
// <div class="row" style="margin-bottom: 10px;">
|
// <div class="row" style="margin-bottom: 10px;">
|
||||||
// <div class="col-md-6">
|
// <div class="col-md-6">
|
||||||
@ -665,66 +666,69 @@ function appendPolicyTermsHTML(policy_type) {
|
|||||||
// </div>
|
// </div>
|
||||||
|
|
||||||
// <div id="sum_insured_add_more" ></div>
|
// <div id="sum_insured_add_more" ></div>
|
||||||
|
termsHTML = `
|
||||||
|
|
||||||
// <div class="row" style="margin-bottom: 10px;">
|
<div class="form-group EDLI">
|
||||||
// <div class="col-md-6">
|
|
||||||
// <label for="totalSumInsured">Existing Insurer</label>
|
|
||||||
// </div>
|
|
||||||
// <div class="col-md-6">
|
|
||||||
// <input type="text" name="existing_insurer" id="existing_insurer" class="form-control">
|
|
||||||
// </div>
|
|
||||||
// </div>
|
|
||||||
|
|
||||||
// <div class="row" style="margin-bottom: 10px;">
|
<div class="row" style="margin-bottom: 10px;">
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <label for="renewal_lives">Renewal Lives</label>
|
<label for="totalSumInsured">Existing Insurer</label>
|
||||||
// </div>
|
</div>
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <input type="text" name="renewal_lives" id="renewal_lives" class="form-control">
|
<input type="text" name="existing_insurer" id="existing_insurer" class="form-control">
|
||||||
// </div>
|
</div>
|
||||||
// </div>
|
</div>
|
||||||
|
|
||||||
// <div class="row" style="margin-bottom: 10px;display:true;">
|
<div class="row" style="margin-bottom: 10px;">
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <label for="lives_at_inception">Lives at Inception</label>
|
<label for="renewal_lives">Renewal Lives</label>
|
||||||
// </div>
|
</div>
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <input type="text" name="lives_at_inception" id="lives_at_inception" class="form-control">
|
<input type="text" name="renewal_lives" id="renewal_lives" class="form-control">
|
||||||
// </div>
|
</div>
|
||||||
// </div>
|
</div>
|
||||||
|
|
||||||
// <div class="row" style="margin-bottom: 10px;display:true;">
|
<div class="row" style="margin-bottom: 10px;display:true;">
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <label for="totalSumInsured">Total Sum Insured at Inception</label>
|
<label for="lives_at_inception">Lives at Inception</label>
|
||||||
// </div>
|
</div>
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <input type="text" name="total_sum_insured_at_inception" id="total_sum_insured_at_inception"
|
<input type="text" name="lives_at_inception" id="lives_at_inception" class="form-control">
|
||||||
// class="form-control" onkeypress="return onlyNumbers(event)" onkeyup="formatNumber(this)">
|
</div>
|
||||||
// </div>
|
</div>
|
||||||
// </div>
|
|
||||||
|
|
||||||
// <div class="row" style="margin-bottom: 10px;display:true;">
|
<div class="row" style="margin-bottom: 10px;display:true;">
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <label for="coverage">Coverage</label>
|
<label for="totalSumInsured">Total Sum Insured at Inception</label>
|
||||||
// </div>
|
</div>
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <input type="text" name="coverage " id="coverage" class="form-control">
|
<input type="text" name="total_sum_insured_at_inception" id="total_sum_insured_at_inception"
|
||||||
// </div>
|
class="form-control" onkeypress="return onlyNumbers(event)" onkeyup="formatNumber(this)">
|
||||||
// </div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
// <div class="row" style="margin-bottom: 10px;display:true;">
|
<div class="row" style="margin-bottom: 10px;display:true;">
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <label for="free_cover_limit">Free Cover Limit for Base Cover</label>
|
<label for="coverage">Coverage</label>
|
||||||
// </div>
|
</div>
|
||||||
// <div class="col-md-6">
|
<div class="col-md-6">
|
||||||
// <input type="text" name="free_cover_limit_for_base_cover" id="free_cover_limit_for_base_cover" class="form-control">
|
<input type="text" name="coverage " id="coverage" class="form-control">
|
||||||
// </div>
|
</div>
|
||||||
// </div>
|
</div>
|
||||||
|
|
||||||
// </div>
|
<div class="row" style="margin-bottom: 10px;display:true;">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<label for="free_cover_limit">Free Cover Limit for Base Cover</label>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="text" name="free_cover_limit_for_base_cover" id="free_cover_limit_for_base_cover" class="form-control">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
// `
|
</div>
|
||||||
// }
|
|
||||||
|
`
|
||||||
|
}
|
||||||
|
|
||||||
$('#append_html_for_other_policy_terms').append(termsHTML);
|
$('#append_html_for_other_policy_terms').append(termsHTML);
|
||||||
}
|
}
|
||||||
@ -734,10 +738,12 @@ function appendOtherSIAddMore(data = null) {
|
|||||||
|
|
||||||
const addMoreContainer = document.getElementById('sum_insured_add_more');
|
const addMoreContainer = document.getElementById('sum_insured_add_more');
|
||||||
|
|
||||||
|
// addMoreContainer.innerHTML = ''; // Clear previous content if needed
|
||||||
|
|
||||||
console.log(addMoreContainer)
|
console.log(addMoreContainer)
|
||||||
|
|
||||||
const html = `
|
const html = `
|
||||||
<div class="row" style="margin-bottom: 10px;">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label for="sumInsured">Additional Sum Insured</label>
|
<label for="sumInsured">Additional Sum Insured</label>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user