CHANGE_ duplicate dependent restic : Vadivel

This commit is contained in:
Gowtham M 2025-08-13 14:10:09 +05:30
parent 9bf933511c
commit ba3a61476d

View File

@ -30,20 +30,25 @@ class EmployeeHelper
public function validation_addEmployeeAndDependence($data){
$employeeData = $this->employeeModel->where('emp_code',$data[0]->emp_code)
->where('client_id',$data[0]->client_id)
->where('client_branch_id',$data[0]->client_branch_id)
->where('is_active', 1 )
->where('is_addon_value',0)
->findAll();
$arr [] = $data;
$arr [] = $data;
$client_policy_id = $data[0]->client_policy_id ;
$array = $this->clientPolicyModel
->where('id',$client_policy_id)
->find();
$is_addon_value = $array[0]->is_addon;
if($is_addon_value == 1){ $is_addon_value = 0 ; }else{ $is_addon_value = 1 ; }
$employeeData = $this->employeeModel->where('emp_code',$data[0]->emp_code)
->where('client_id',$data[0]->client_id)
->where('client_branch_id',$data[0]->client_branch_id)
->where('is_active', 1 )
->where('is_addon_value',$is_addon_value)
->findAll();
$array = $array[0];