Issues fixes : ps
This commit is contained in:
parent
e3a7c98df6
commit
d61bde0cdd
@ -2049,7 +2049,7 @@ class Fees_status_model extends CI_Model
|
||||
$this->db->where('SFP.FeesId',$feesDetails['FeesId']);
|
||||
$this->db->where('SFP.IsActive','1');
|
||||
$existDetails = $this->db->get();
|
||||
if($existDetails->num_rows()>1){
|
||||
if($existDetails->num_rows()>0){
|
||||
return true;
|
||||
}
|
||||
else{
|
||||
|
||||
@ -212,8 +212,8 @@ class StatusUpdation_model extends CI_Model {
|
||||
$WithoutspaceStatus = preg_replace('/\s+/', '',$upperresult);
|
||||
//If condition for Check ANSWERBOOKLET_STATUS, If it is null or 'Issued to Student' for do not send sms.
|
||||
// if($answerBookletStatus['isIssueToStudentExist'] == 0 && $answerBookletStatus['statusCount'] != 0)
|
||||
if($answerBookletStatus['isIssueToStudentExist'] == 0 )
|
||||
{
|
||||
// if($answerBookletStatus['isIssueToStudentExist'] == 0 )
|
||||
// {
|
||||
// if ($this->get_ListCode_status($arr[0]['ListCode'])) {
|
||||
|
||||
$dateToMsg = $arr[0]['CDate'];
|
||||
@ -236,7 +236,7 @@ class StatusUpdation_model extends CI_Model {
|
||||
$getSemYearANDType = "$getSemYearMsg $cerNamtToMsg";
|
||||
// $mesg = "Status Update : $cerNamtToMsg $getSemYearMsg - $statuToMsg $dateToMsg.";
|
||||
$mesg = "$cerNamtToMsg Received - Dear $studentName, Your $getSemYearANDType had been received, Please come and collect it. APOLLO DEC";
|
||||
$this->smssend($arr, $mesg);
|
||||
$msgid = $this->smssend($arr, $mesg);
|
||||
$this->mailsend($arr, $mesg, $cerNamtToMsg);
|
||||
|
||||
|
||||
@ -261,9 +261,10 @@ class StatusUpdation_model extends CI_Model {
|
||||
// $mesg = "Status Update : $cerNamtToMsg - $statuToMsg $dateToMsg.";
|
||||
// $this->smssend($arr, $mesg);
|
||||
// }//
|
||||
}///else {echo "DO NOT SEND SMS";}
|
||||
// }///else {echo "DO NOT SEND SMS";}
|
||||
$result['addStatus'] = true;
|
||||
$result['message'] = "Successfully Mark Card Status Updated";
|
||||
$result['SMSstatus'] = $msgid;
|
||||
} else {
|
||||
$result['addStatus'] = false;
|
||||
$result['message'] = "Something went wrong.please try again";
|
||||
@ -786,7 +787,7 @@ class StatusUpdation_model extends CI_Model {
|
||||
$error = $this->db->error();
|
||||
return $error;
|
||||
}else{
|
||||
return $output;
|
||||
return $msgId;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user