Customer Group hide EXPIRYDATE : ps

This commit is contained in:
VE10-Sanjeev 2023-12-01 17:41:35 +05:30
parent f20c9c6967
commit 0209906651
2 changed files with 4 additions and 1 deletions

View File

@ -203,7 +203,9 @@ class Notifications extends BaseController
{
$model = new NotificationModel();
$model->setTable('customer_groups');
$details = $model->where('isactive',1)->orderBy('group_id', 'ASC')->findAll();
// $details = $model->where('isactive',1)->orderBy('group_id', 'ASC')->findAll();
$where = ['isactive' => 1, 'group_name != ' => 'EXPIRYDATE'];
$details = $model->where($where)->orderBy('group_id', 'ASC')->findAll();
return $details;
}
public function get_template_details(){

View File

@ -152,6 +152,7 @@ return $this->db->table('customer_groups as CG' )
->join('users as U1', 'U1.user_id = CG.created_by', 'left')
->join('users as U2', 'U2.user_id = CG.updated_by', 'left')
->select('CG.group_id,CG.group_name,CG.created_on,CG.created_by,CG.updated_on,CG.updated_by,DATE_FORMAT(CG.created_on, "%d/%m/%Y %h:%i %p") AS formatted_created_on,concat(U1.first_name," ",U1.last_name) as created_by_name,concat(U2.first_name," ",U2.last_name) as updated_by_name,CG.isactive')
->where(['CG.group_name != ' => 'EXPIRYDATE'])
// ->where(['CG.isactive' => 1])
->get()
->getResultArray();