From 3d53967e404344f64f6d1172d59cf997689ae5bb Mon Sep 17 00:00:00 2001 From: vadivelJ96 Date: Thu, 7 Aug 2025 11:20:03 +0530 Subject: [PATCH] CHANGES- BDS Hide and Show of insurer and tpa based on policy id - Vadivel j 2025-08-07 --- .../policy_transaction_endorsement_form.php | 16 ++++++++++++--- .../policy_transaction_inception_form.php | 20 +++++++++++++++++-- 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/app/Views/policy_transaction_endorsement_form.php b/app/Views/policy_transaction_endorsement_form.php index eaab26ee..55fef2c5 100644 --- a/app/Views/policy_transaction_endorsement_form.php +++ b/app/Views/policy_transaction_endorsement_form.php @@ -193,7 +193,7 @@
-
+
-
+
-
+
@@ -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); diff --git a/app/Views/policy_transaction_inception_form.php b/app/Views/policy_transaction_inception_form.php index 2d15e411..dd4c2e99 100644 --- a/app/Views/policy_transaction_inception_form.php +++ b/app/Views/policy_transaction_inception_form.php @@ -521,12 +521,12 @@
-
+
-
+
@@ -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{