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{