CHANGE_ in age validation : GWM

This commit is contained in:
bitbucket 2024-05-15 12:24:22 +05:30
parent 472c189dfa
commit 37db3a9f7a

View File

@ -960,7 +960,7 @@ public function getEmployeePolicy()
// Construct value for policy type GPA
if($getSlabAndGridData['grid_master']['policy_type'] == "GPA"){
if($getSlabAndGridData['grid_master']['policy_type'] == "GPA" && $this->request->getGet('policy') == 'GPA'){
// Filter employee data where the family_floater_key is 'self'
$selfData = array_filter($empData, fn($arr) => trim(strtolower($arr['family_floater_key'])) === 'self');
@ -985,7 +985,7 @@ public function getEmployeePolicy()
}
// Construct value for policy type GMC
}else if($getSlabAndGridData['grid_master']['policy_type'] == "GMC"){
}else if($getSlabAndGridData['grid_master']['policy_type'] == "GMC" && $this->request->getGet('policy') == 'GMC' ){
@ -1035,7 +1035,7 @@ public function getEmployeePolicy()
}
}
}
// dd($data);
// Remove Unwanted floter key from floters array based on either-parents-pil term value