kingkay000 commited on
Commit
2f6ce82
·
verified ·
1 Parent(s): 7831092

Update easypay/ajax_handlers_inactives.php

Browse files
easypay/ajax_handlers_inactives.php CHANGED
@@ -45,7 +45,8 @@ function searchStudents($pdo)
45
  CONCAT(last_name, ' ', first_name, ' ', COALESCE(other_name, '')) AS full_name
46
  FROM tb_student_registrations
47
  WHERE
48
- student_code LIKE :search1
 
49
  OR last_name LIKE :search2
50
  OR first_name LIKE :search3
51
  OR other_name LIKE :search4
 
45
  CONCAT(last_name, ' ', first_name, ' ', COALESCE(other_name, '')) AS full_name
46
  FROM tb_student_registrations
47
  WHERE
48
+ admission_status <> 'Active' -- New condition added here
49
+ AND (student_code LIKE :search1
50
  OR last_name LIKE :search2
51
  OR first_name LIKE :search3
52
  OR other_name LIKE :search4