PROMOTE BATCH ISSUE FIXED:VELZ
This commit is contained in:
parent
e99b9332a0
commit
cb1055d944
@ -67,7 +67,7 @@ class Reregister_model extends CI_Model
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
$sql = "SELECT * FROM apollod4_ApolloDECDev.T_BatchMaster where isActive = 1 and UniversityID = ? and BranchCode = ? and str_to_date(BatchDate,'%d-%m-%Y') > str_to_date(?,'%d-%m-%Y') order by str_to_date(BatchDate,'%d-%m-%Y') asc limit 1";
|
$sql = "SELECT * FROM T_BatchMaster where isActive = 1 and UniversityID = ? and BranchCode = ? and str_to_date(BatchDate,'%d-%m-%Y') > str_to_date(?,'%d-%m-%Y') order by str_to_date(BatchDate,'%d-%m-%Y') asc limit 1";
|
||||||
$res2 = $this->db->query($sql,array($UID['universityID'],$branchId,date_format(date_create($batchDate),'d-m-Y')));
|
$res2 = $this->db->query($sql,array($UID['universityID'],$branchId,date_format(date_create($batchDate),'d-m-Y')));
|
||||||
|
|
||||||
$data['nextBatch'] = $res2->result();
|
$data['nextBatch'] = $res2->result();
|
||||||
@ -127,6 +127,8 @@ class Reregister_model extends CI_Model
|
|||||||
$res = $this->db->query($sql,array($student->CourseID,$sem));
|
$res = $this->db->query($sql,array($student->CourseID,$sem));
|
||||||
$res = $res->result_array();
|
$res = $res->result_array();
|
||||||
|
|
||||||
|
if(!empty($res))
|
||||||
|
{
|
||||||
$feesID = $res[0]['ID'];
|
$feesID = $res[0]['ID'];
|
||||||
$feesAmount = $res[0]['FeesAmount'];
|
$feesAmount = $res[0]['FeesAmount'];
|
||||||
|
|
||||||
@ -174,7 +176,7 @@ class Reregister_model extends CI_Model
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user