Merge branch 'dev' of bitbucket.org:jubilian/nhance into dev
This commit is contained in:
commit
a8f5326b32
@ -4664,6 +4664,9 @@ class EmployeeRestController extends AdminController
|
||||
$employeeController = new EmployeeController();
|
||||
$responce = $employeeController->employeesUplodWithEvents($post_data);
|
||||
// print_r($responce); die;
|
||||
if ($responce['status']) {
|
||||
$this->giveNotificationToClientsAccountManager($post_data);
|
||||
}
|
||||
|
||||
return $responce;
|
||||
|
||||
|
||||
@ -1520,6 +1520,8 @@ class EmployeeServiceController extends AdminController
|
||||
|
||||
if(count($employee_data_group_by_family ?? []) && isset($params['batch_file_id'])){
|
||||
$r = Jobs::addJob(['job_name' => 'updateEmployeeDataFromTpa','payload' => ['file_id' => $file_id, 'batch_file_id' => $params['batch_file_id']]]);
|
||||
$r = Jobs::addJob(['job_name' => 'reconTpaApiDataWithEmployeepolicies','payload' => ['file_id' => $params['batch_file_id']]]);
|
||||
$r = Jobs::addJob(['job_name' => 'initializeDeletionProcessForTpaApiData','payload' => ['file_id' => $params['batch_file_id']]]);
|
||||
$this->myLogger->logme("info", 'Batch file id {batch_file_id} processed successfully', ['batch_file_id' => $params['batch_file_id']]);
|
||||
}
|
||||
|
||||
|
||||
@ -3061,6 +3061,11 @@ if (!function_exists('validate_date_value')) {
|
||||
if (!function_exists('validate_mobile_value')) {
|
||||
function validate_mobile_value($value)
|
||||
{
|
||||
if(empty($value))
|
||||
{
|
||||
return ['status' => true, 'error' => null];
|
||||
}
|
||||
|
||||
if (preg_match('/^[0-9]{10}$/', $value)) {
|
||||
return ['status' => true, 'error' => null];
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user