Issues fixes : ps

This commit is contained in:
Sanjeev 2021-04-17 19:25:34 +05:30
parent e3a7c98df6
commit d61bde0cdd
2 changed files with 7 additions and 6 deletions

View File

@ -2049,7 +2049,7 @@ class Fees_status_model extends CI_Model
$this->db->where('SFP.FeesId',$feesDetails['FeesId']); $this->db->where('SFP.FeesId',$feesDetails['FeesId']);
$this->db->where('SFP.IsActive','1'); $this->db->where('SFP.IsActive','1');
$existDetails = $this->db->get(); $existDetails = $this->db->get();
if($existDetails->num_rows()>1){ if($existDetails->num_rows()>0){
return true; return true;
} }
else{ else{

View File

@ -212,8 +212,8 @@ class StatusUpdation_model extends CI_Model {
$WithoutspaceStatus = preg_replace('/\s+/', '',$upperresult); $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 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 && $answerBookletStatus['statusCount'] != 0)
if($answerBookletStatus['isIssueToStudentExist'] == 0 ) // if($answerBookletStatus['isIssueToStudentExist'] == 0 )
{ // {
// if ($this->get_ListCode_status($arr[0]['ListCode'])) { // if ($this->get_ListCode_status($arr[0]['ListCode'])) {
$dateToMsg = $arr[0]['CDate']; $dateToMsg = $arr[0]['CDate'];
@ -236,7 +236,7 @@ class StatusUpdation_model extends CI_Model {
$getSemYearANDType = "$getSemYearMsg $cerNamtToMsg"; $getSemYearANDType = "$getSemYearMsg $cerNamtToMsg";
// $mesg = "Status Update : $cerNamtToMsg $getSemYearMsg - $statuToMsg $dateToMsg."; // $mesg = "Status Update : $cerNamtToMsg $getSemYearMsg - $statuToMsg $dateToMsg.";
$mesg = "$cerNamtToMsg Received - Dear $studentName, Your $getSemYearANDType had been received, Please come and collect it. APOLLO DEC"; $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); $this->mailsend($arr, $mesg, $cerNamtToMsg);
@ -261,9 +261,10 @@ class StatusUpdation_model extends CI_Model {
// $mesg = "Status Update : $cerNamtToMsg - $statuToMsg $dateToMsg."; // $mesg = "Status Update : $cerNamtToMsg - $statuToMsg $dateToMsg.";
// $this->smssend($arr, $mesg); // $this->smssend($arr, $mesg);
// }// // }//
}///else {echo "DO NOT SEND SMS";} // }///else {echo "DO NOT SEND SMS";}
$result['addStatus'] = true; $result['addStatus'] = true;
$result['message'] = "Successfully Mark Card Status Updated"; $result['message'] = "Successfully Mark Card Status Updated";
$result['SMSstatus'] = $msgid;
} else { } else {
$result['addStatus'] = false; $result['addStatus'] = false;
$result['message'] = "Something went wrong.please try again"; $result['message'] = "Something went wrong.please try again";
@ -786,7 +787,7 @@ class StatusUpdation_model extends CI_Model {
$error = $this->db->error(); $error = $this->db->error();
return $error; return $error;
}else{ }else{
return $output; return $msgId;
} }
} }