		   if($search_params['purpose_id']!='')
		       $this->db->like('c.purpose_id',$search_params['purpose_id']);
	
		//$this->db->where('n.status',1);
		$this->db->limit($per_page, $current_offset);
		$res = $this->db->get();
		//echo $this->db->last_query();exit;		
		return $res->result_array(); 
	}
	/* fetching rows of distributor credit debit list
    Author:Aswini
    Time:21-02-2017*/