From 599dfda3f6d86cf317b30487247241b27d336ee9 Mon Sep 17 00:00:00 2001 From: Srinivas-Saravanan Date: Wed, 12 Feb 2025 14:52:51 +0530 Subject: [PATCH] FIX_RFQ_GMC_SRI --- app/Views/leads_form.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/app/Views/leads_form.php b/app/Views/leads_form.php index 92d6af73..438f6ead 100644 --- a/app/Views/leads_form.php +++ b/app/Views/leads_form.php @@ -494,7 +494,7 @@ function getLeadsDataForEdit(input) { $('#freshDiv').hide(); $('.proposed_div').show().find('select, input').attr('required', 'required'); $('#policy_end_date, #policy_start_date, #claim').removeAttr('required'); - $('.freashDiv').show() + // $('.freashDiv').show() $('.renewalDiv').hide() $('.emp_title').text('No of Employees at Inception') @@ -516,7 +516,7 @@ function getLeadsDataForEdit(input) { $('.depnd_title').text('No of Dependents') $('.total_title').text('Total Lives') }else{ - $('.freashDiv').show() + // $('.freashDiv').show() $('.renewalDiv').hide() $('.emp_title').text('No of Employees at Inception') @@ -527,7 +527,7 @@ function getLeadsDataForEdit(input) { } if(res.data.policy_type_id != 2){ - + $('.gpa_hide_div_'+increment).hide(); $('.gpa_show_div_'+increment).show(); $('.gpa_div_elements_'+increment).show(); @@ -1141,7 +1141,7 @@ function addHTMLInput(check) { // $('.proposed_div').show().find('select, input').attr('required', 'required'); $('.proposed_div').show(); - $('.freashDiv').show() + // $('.freashDiv').show() $('.renewalDiv').hide() $('.emp_title').text('No of Employees at Inception') @@ -1163,7 +1163,7 @@ function addHTMLInput(check) { $('.depnd_title').text('No of Dependents') $('.total_title').text('Total Lives') }else{ - $('.freashDiv').show() + // $('.freashDiv').show() $('.renewalDiv').hide() $('.emp_title').text('No of Employees at Inception') $('.depnd_title').text(' No of Dependents at Inception') @@ -1468,7 +1468,7 @@ $('#lead_type').change(function() { $('#policy_start_date').removeAttr('required'); $('#claims').removeAttr('required'); $('#freshDiv').hide(); - $('.freashDiv').show() + // $('.freashDiv').show() $('.renewalDiv').hide() $('.gpa_div_elements').show(); @@ -1516,7 +1516,7 @@ $('#lead_type').change(function() { $('.gpa_div_elements').show(); }else{ - $('.freashDiv').show() + // $('.freashDiv').show() $('.renewalDiv').hide() $('.emp_title').text('No of Employees at Inception') @@ -1614,12 +1614,14 @@ function showGpaColumns(input){ let policy_type_id = $(input).val() let increment = input.id.split("_").pop(); if(policy_type_id != 2){ + $('.freashDiv').hide() $('.gpa_hide_div_'+increment).hide(); $('.gpa_show_div_'+increment).show(); $('.gpa_div_elements_'+increment).show(); $('.emp_title').text('No of Employees at Inception') $('.total_title').text('Total Sum Insured at Inception') }else{ + $('.freashDiv').show() $('.gpa_hide_div_'+increment).show(); } @@ -1645,7 +1647,7 @@ function getURLParamsForReport() { console.log('lead_id', lead_id); // Retain the log if necessary } -$('#policy_type_id').change(function() { +$('.policy_type_id').change(function() { console.log("policy type changed"); var policy_type_id = $(this).val(); if (policy_type_id == 2) {