course details changes done

This commit is contained in:
gandhimathi 2018-02-05 19:01:28 +05:30
parent 6fbe2bae97
commit 2cd8de31b1

View File

@ -666,6 +666,15 @@ class StatusUpdation_model extends CI_Model
* */
public function updateDocumentStatusInCallTrack($fromDetails=null,$reqDetails=null){
// check certificate type
$this->db->select('CFM.CertificationID');
$this->db->from(CERTIFICATION_MASTER.' as CFM');
$this->db->where('CFM.CertificateName','APPLICATION');
$this->db->where('CFM.CertificationID',$fromDetails[0]['CertificationType']);
$this->db->where('CFM.IsActive','1');
$checkApplicationStatus=$this->db->get()->last_row();
if($checkApplicationStatus){
// get student details
$this->db->select('PLD.ListCode');
$this->db->from(PICK_LIST_DETAILS.' as PLD');
@ -709,7 +718,7 @@ class StatusUpdation_model extends CI_Model
// create activity in call tracking
$this->db->select('ActivityID,ActivityName');
$this->db->like('ActivityName', 'Document', 'after');
$this->db->like('ActivityName', 'Application', 'after');
$this->db->where('IsActive', '1');
$activityDetails=$this->db->get(ACTIVITY)->last_row();
if($activityDetails){
@ -823,6 +832,11 @@ class StatusUpdation_model extends CI_Model
return false;
}
}
else{
return false;
}
}
/*
* get student info