CHANGE_PRE_POLICY_COUNT : RV

This commit is contained in:
VENKATESHWARAN 2025-07-01 11:19:25 +05:30
parent c30439ecd3
commit 80e979d361
2 changed files with 5 additions and 1 deletions

View File

@ -3636,10 +3636,14 @@ class EmployeeRestController extends AdminController
log_message('error', 'Building query to count employee policies...'); log_message('error', 'Building query to count employee policies...');
$builder = $db2->table('employees') $builder = $db2->table('employees')
->join('employee_polices', 'employees.id = employee_polices.employee_id') ->join('employee_polices', 'employees.id = employee_polices.employee_id')
->join('client_policy cp', 'employee_polices.client_policy_id = cp.id')
->where('employees.is_active', 1) ->where('employees.is_active', 1)
->whereIn('employees.emp_status', ['draft', 'enrolled']) ->whereIn('employees.emp_status', ['draft', 'enrolled'])
->where('employee_polices.is_active', 1) ->where('employee_polices.is_active', 1)
->whereIn('employee_polices.status', ['draft', 'enrolled']) ->whereIn('employee_polices.status', ['draft', 'enrolled'])
->where('cp.enrolment_visibility', 1)
->where('cp.open_for_enrollment', 1)
->whereIn('cp.policy_type_id', [1,2,6,7])
->where('employees.mobile', $mobile_no) ->where('employees.mobile', $mobile_no)
->groupBy('employee_polices.client_policy_id'); ->groupBy('employee_polices.client_policy_id');

View File

@ -1854,7 +1854,7 @@ class TicketController extends BaseController
$this->loadLayout("ticket_feedback_list",$data); $this->loadLayout("ticket_feedback_list",$data);
} }
public function getMoreInfo($requestFrom = null , $ticket_id) { public function getMoreInfo($requestFrom = null , $ticket_id = null) {
if($requestFrom == null){ if($requestFrom == null){
$ticket_id = $this->request->getPost('ticket_id'); $ticket_id = $this->request->getPost('ticket_id');