From 8e3a62e540aab2d0fc4684c27dd17fc20e9f64c7 Mon Sep 17 00:00:00 2001 From: "venkatesh.r" Date: Sat, 27 Apr 2024 15:24:35 +0530 Subject: [PATCH] FIX_FILTER_IN_CLIENT_POLICY : RV --- app/Views/client_policy.php | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/app/Views/client_policy.php b/app/Views/client_policy.php index 353f30c6..0dce634e 100644 --- a/app/Views/client_policy.php +++ b/app/Views/client_policy.php @@ -434,11 +434,19 @@ } } else if ($policy_type_value == 2) { if (item.policy_type_id == 4) { + OptionsHTML += ''; + } + } else if ($policy_type_value == 1) { + if (item.policy_type_id == 1 || item.policy_type_id == 2) { + OptionsHTML += ''; } } else { + OptionsHTML += ''; @@ -572,7 +580,7 @@ setTimeout(function() { $('.loader').fadeOut(); $('.loader-mask').delay(350).fadeOut('slow'); - toastr.warning('Something Wrong!', 'warning'); + console.log('Something Wrong!', 'warning'); }, 1000); } }); @@ -1025,10 +1033,20 @@ $('#tpa').val('').change(); $('#start_date').val(''); $('#end_date').val(''); - $('#base_policy').val('0'); + $('#base_policy').val('').change(); + + if ($(this).val() == 2 || $(this).val() == 3) { + $('#insurer').prop('disabled', true); + $('#tpa').prop('disabled', true); + } else { + $('#insurer').prop('disabled', false); + $('#tpa').prop('disabled', false); + } + + if ($(this).val() == 3) { - toastr.warning('Please Change the Policy Terms after Submit the Policy!', 'warning'); + toastr.warning('Please Change the Policy Terms after Submit the Policy!', 'INFO'); } if ($(this).val() != '1' && $(this).val() != '0') { @@ -1091,7 +1109,7 @@ setTimeout(function() { $('.loader').fadeOut(); $('.loader-mask').delay(350).fadeOut('slow'); - toastr.warning('Something Wrong!', 'warning'); + console.log('Something Wrong!', 'warning'); }, 1000); } }); @@ -1166,7 +1184,7 @@ setTimeout(function() { $('.loader').fadeOut(); $('.loader-mask').delay(350).fadeOut('slow'); - toastr.warning('Something Wrong!', 'warning'); + console.log('Something Wrong!', 'warning'); }, 500); } });