-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
@@ -208,6 +207,7 @@ $("#otherPolicyTerms").submit(function(event) {
$('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow');
}, 1000);
+ location.reload();
},
error: function(xhr, status, error) {
console.error(xhr.responseText);
@@ -240,7 +240,6 @@ $('body').on('click', '.btnPolicyMaster', function() {
$('#other_client_policy_id').val(client_policy_id);
- // appendPolicyTermsHTML(policy_type_id);
var gpa_policy_type_id = $(this).attr('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
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 = `
@@ -400,6 +399,10 @@ $('body').on('click', '.btnPolicyMaster', function() {
});
+ } else {
+
+ appendPolicyTermsHTML(policy_type_id);
+
}
@@ -523,208 +526,209 @@ function appendPolicyTermsHTML(policy_type) {
var termsHTML = ""
$('#append_html_for_other_policy_terms').empty();
- // if (policy_type == 7) {
+ if (policy_type == 7) {
- // termsHTML = `
- //
+ //
+ termsHTML = `
- // `
+
- //
- // `
- // }
+
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+
+ //
+ 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');
+ // addMoreContainer.innerHTML = ''; // Clear previous content if needed
+
console.log(addMoreContainer)
const html = `
-