latest commit 11-06-2025
This commit is contained in:
parent
2bef105d7c
commit
b8e9e64cfd
@ -232,11 +232,14 @@ class EmployeeRestController extends AdminController
|
||||
|
||||
// dd($data);
|
||||
|
||||
if ( ! isset($data[0]->id) ) {
|
||||
$validationFailed = $this->employeeHelper->validation_addEmployeeAndDependence($data);
|
||||
|
||||
if($validationFailed){
|
||||
return $this->respond(['status' => 'failed','code' => 404,'data' => "validation_addEmployeeAndDependence failed ..!!"], 404);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$openForEnrollment = $this->findThePolicyIsOpenForEnrollment($data[0]->client_policy_id);
|
||||
if($openForEnrollment == false){ return $this->respond(['status' => 'failed','code' => 404,'data' => 'Enrollment closed'], 404); }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user