Regards issue 1156

This commit is contained in:
velz 2018-06-12 13:35:17 +05:30
parent b4a5babaf7
commit 64f2951f1f

View File

@ -665,12 +665,12 @@ class Hallticket_model extends CI_Model
public function getBatchDetails($UniversityID,$branchId)
{
$this->db->select('BatchID,BatchCode,BatchName');
$this->db->select("BatchID,BatchCode,BatchName,str_to_date( BatchDate,'%d-%m-%Y') as BD");
$this->db->from('T_BatchMaster');
$this->db->where('UniversityID',$UniversityID);
$this->db->where('IsActive',1);
$this->db->where('BranchCode',$branchId);
$this->db->order_by('BatchID','DESC');
$this->db->order_by("BD","DESC");
$res = $this->db->get();
return $res->result();