From 2d888d57fb1a3f630e1c3053f4e4018aee200c0e Mon Sep 17 00:00:00 2001 From: "venkatesh.r" Date: Mon, 6 Jan 2025 12:21:22 +0530 Subject: [PATCH] CHANGE_CLIENT_POLICY_CLIENT_BRANCH_IS_ACTIVE : RV --- app/Controllers/ClientController.php | 2 ++ app/Controllers/EmpDataServiceController.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Controllers/ClientController.php b/app/Controllers/ClientController.php index 4b8c38a0..42ba6641 100755 --- a/app/Controllers/ClientController.php +++ b/app/Controllers/ClientController.php @@ -2550,12 +2550,14 @@ class ClientController extends AdminController } } + //for this function policy binding dropdown list use ( client policy ) public function getClientBranch($client_id) { $branchs = $this->clientBranchModel ->select('*') ->where('client_id', $client_id) + ->where('is_active', 1) ->findAll(); return $this->respond(['status' => true, 'code' => 200, 'data' => $branchs], 200); diff --git a/app/Controllers/EmpDataServiceController.php b/app/Controllers/EmpDataServiceController.php index 8926ffa5..20b3e549 100755 --- a/app/Controllers/EmpDataServiceController.php +++ b/app/Controllers/EmpDataServiceController.php @@ -3854,7 +3854,7 @@ class EmpDataServiceController extends BaseController //end not in use /** - * The below functions are Calculates and records cash deposits for employee policies at inception. + * The below functions are Calculates and records cash deposits for employee policies at Deletion. * * @param array $arrayData An array containing necessary data including : * - employee IDs, @@ -4056,7 +4056,7 @@ class EmpDataServiceController extends BaseController AND emp_endorsement.field_name = 'date_of_exit' ")->getRow(); - dd(db_connect()->getLastQuery(), $amount); + // dd(db_connect()->getLastQuery(), $amount); if($amount){