Customer Group hide EXPIRYDATE : ps
This commit is contained in:
parent
f20c9c6967
commit
0209906651
@ -203,7 +203,9 @@ class Notifications extends BaseController
|
|||||||
{
|
{
|
||||||
$model = new NotificationModel();
|
$model = new NotificationModel();
|
||||||
$model->setTable('customer_groups');
|
$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;
|
return $details;
|
||||||
}
|
}
|
||||||
public function get_template_details(){
|
public function get_template_details(){
|
||||||
|
|||||||
@ -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 U1', 'U1.user_id = CG.created_by', 'left')
|
||||||
->join('users as U2', 'U2.user_id = CG.updated_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')
|
->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])
|
// ->where(['CG.isactive' => 1])
|
||||||
->get()
|
->get()
|
||||||
->getResultArray();
|
->getResultArray();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user