CHANGE_HR_ACCESS_SAVE

This commit is contained in:
VENKATESHWARAN 2025-10-11 19:32:05 +05:30
parent d88147a53d
commit 950c117a2e

View File

@ -7305,7 +7305,9 @@ class ClientController extends AdminController
$pre_hr_id = $db2->table('client_branch cb')
->select('lc.id')
->join('level_contacts lc','lc.ref_id = cb.id')
->where('cb.id',$pre_branch_id)->where('cb.is_Active',1)->where('lc.is_Active',1)->get()->getResultArray()[0]['id']??"";
->where('lc.contact_type', 'client')
->where('cb.id',$pre_branch_id)->where('cb.is_Active',1)
->where('lc.is_Active',1)->get()->getResultArray()[0]['id']??"";
return $pre_hr_id;
}