From 3149cc29d221bc1ce8809873649563b18e805d96 Mon Sep 17 00:00:00 2001 From: Venkatesh Date: Wed, 8 Apr 2026 17:35:50 +0530 Subject: [PATCH] FIX_ISSUE_EMPLOYEE_SUCCESS_UPDATE --- app/Controllers/EmployeeServiceController.php | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/Controllers/EmployeeServiceController.php b/app/Controllers/EmployeeServiceController.php index 0864c3c2..0ade2eb7 100755 --- a/app/Controllers/EmployeeServiceController.php +++ b/app/Controllers/EmployeeServiceController.php @@ -1457,17 +1457,17 @@ class EmployeeServiceController extends AdminController // } } - // if ($employee_insert_count > 0) { - // $this->fileModel->where('id', $file_id)->set(['status' => 'success', 'reason' => ''])->update(); - // $this->myLogger->logme("error", '{file_id} uploaded success', ['file_id' => $file_id]); - // } else { - // $reason = json_encode([ - // 'error_summary' => [5 => 1], - // 'error_data' => "Rack rate configuration issue: Please check the slab rates configuration" - // ], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); - // $this->fileModel->where('id', $file_id)->set(['status' => 'failed', 'reason' => $reason])->update(); - // $this->myLogger->logme("error", '{file_id} uploaded failed with reason: Rack rate configuration issue: Please check the slab rates configuration', ['file_id' => $file_id]); - // } + if ($employee_insert_count > 0) { + $this->fileModel->where('id', $file_id)->set(['status' => 'success', 'reason' => ''])->update(); + $this->myLogger->logme("error", '{file_id} uploaded success', ['file_id' => $file_id]); + } else { + $reason = json_encode([ + 'error_summary' => [5 => 1], + 'error_data' => "Rack rate configuration issue: Please check the slab rates configuration" + ], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); + $this->fileModel->where('id', $file_id)->set(['status' => 'failed', 'reason' => $reason])->update(); + $this->myLogger->logme("error", '{file_id} uploaded failed with reason: Rack rate configuration issue: Please check the slab rates configuration', ['file_id' => $file_id]); + } // $this->setPullNotification($this->getFileMetaDataByFileId($file_id, 'success')); } else if (isset($params['client_policy_id'])) //handle data from enrollment to inception