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);