From df84cbba14d4490697dfe03478787e8d8c81955e Mon Sep 17 00:00:00 2001 From: vadivelJ96 Date: Thu, 9 Oct 2025 17:14:02 +0530 Subject: [PATCH] CHANGE_Post_app_having_pre_branch_id - VADIVEL J 2025-10-09 --- app/Controllers/ClientController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Controllers/ClientController.php b/app/Controllers/ClientController.php index 36b62d05..63ddac11 100755 --- a/app/Controllers/ClientController.php +++ b/app/Controllers/ClientController.php @@ -1137,7 +1137,7 @@ class ClientController extends AdminController return $this->respond([ 'status' => false, 'code' => 409, - 'message' => 'The pre branch id '.$data['pre_branch_id'].' is already mapped with another branch. Please check.', + 'message' => 'The branch is already mapped with another branch. Please check.', ], 409); } } @@ -1266,7 +1266,7 @@ class ClientController extends AdminController return $this->respond([ 'status' => false, 'code' => 409, - 'message' => 'The pre branch id '.$data['pre_branch_id'].' is already mapped with another branch. Please check.', + 'message' => 'The branch is already mapped with another branch. Please check.', ], 409); } } @@ -7202,7 +7202,7 @@ class ClientController extends AdminController $post_hr_id = $value['post_hr_id']; $preBranchId = $this->getPreBranchIdByPostBranchId($post_branch_id); - + if (!empty($preBranchId)) { $value['pre_branch_id'] = $preBranchId; $value['pre_client_id'] = $this->getPreClientIdByPreBranchId($preBranchId);