MERGE_LIVE_MINOR_ISSUES

This commit is contained in:
Ubuntu 2025-08-16 23:03:00 +05:30
commit de5dde0234

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