FIX_LIVE_ONBOARD_ISSUE

This commit is contained in:
velz 2024-12-23 17:16:33 +05:30
parent cd37e33920
commit 942d184914

View File

@ -1611,7 +1611,7 @@ class EmployeeServiceController extends AdminController
// echo '---------------------------------------';
//start implemet of si enhancement of grid type 10,11
if(count($employee) && $file['action'] == 'dependent_addition' && $temp['source'] == 'db' && in_array($value['temp']['grid_id'],[10,11]) && ( ($value['temp']['premium_type'] == 1 && (strtolower($value['relationship']) == 'self' || $temp['acting_self'])) || ($value['temp']['premium_type'] == 2 || $value['temp']['premium_type'] == null)))
if(count($employee) && $file['action'] == 'dependent_addition' && $temp['source'] == 'db' && in_array($temp['grid_id'],[10,11]) && ( ($temp['premium_type'] == 1 && (strtolower($value['relationship']) == 'self' || $temp['acting_self'])) || ($temp['premium_type'] == 2 || $temp['premium_type'] == null)))
{
$log_message = 'Employee record from DB,Checking SI for - '.$employee[0]['name'].'('.$employee[0]['emp_code'].')';
$this->myLogger->logme('error',$log_message);
@ -1620,7 +1620,7 @@ class EmployeeServiceController extends AdminController
break;//skip db employee
}
//end implemet of si enhancement of grid type
dd('s');
//save employee table
$value['relationship'] = ucfirst(trim($value['relationship']));
if(count($employee))