course details changes done
This commit is contained in:
parent
89ec974388
commit
a14ebefa9c
@ -394,12 +394,14 @@ class Fees_status_model extends CI_Model
|
||||
public function updateFees($feesPaidDetails=null)
|
||||
{
|
||||
if($feesPaidDetails['UpdatedBy']=='All'){
|
||||
$this->db->select('BranchID');
|
||||
$this->db->select('BranchID,ST.Firstname');
|
||||
$this->db->where('FeesID', $feesPaidDetails['FeesId']);
|
||||
$this->db->from(STUDENTS_FEES_STATUS.' as SFS');
|
||||
$this->db->join(STUDENTCOURSE.' as SC', 'SC.CourseID = SFS.CourseID');
|
||||
$this->db->join(STUDENTS.' as ST', 'ST.StudentID = SC.StudentID');
|
||||
$getStudentBranch=$this->db->get()->result();
|
||||
$feesPaidDetails['UpdatedBy'] = $getStudentBranch[0]->BranchID;
|
||||
$studentName=$getStudentBranch[0]->Firstname;
|
||||
|
||||
}
|
||||
$this->db->select('BillNO');
|
||||
@ -432,6 +434,7 @@ class Fees_status_model extends CI_Model
|
||||
$result['paidStatus'] = true;
|
||||
$result['message'] = "Successfully fees details added";
|
||||
$feesPayedID = $this->db->insert_id();
|
||||
$feesPaidDetails['StudentName']= $studentName;
|
||||
// $entryOfCallTrack = $this->updateInCallTrack($trackDetails);
|
||||
// day book entry
|
||||
if($feesPaidDetails['BillAmount']!='0'){
|
||||
@ -1094,7 +1097,8 @@ class Fees_status_model extends CI_Model
|
||||
$insertArray['Status'] = 'Approved';
|
||||
$insertArray['PaymentStatus'] = false;
|
||||
$insertArray['FeesPaymentID'] = $paymentID;
|
||||
|
||||
$insertArray['VoucherNumber'] = $data['BillNO'];
|
||||
$insertArray['PaidTo'] = $data['StudentName'];
|
||||
$insertArray['BranchCode'] = $data['UpdatedBy'];
|
||||
|
||||
$this->db->select('ID,TypeID');
|
||||
@ -1120,7 +1124,8 @@ class Fees_status_model extends CI_Model
|
||||
$expenseArray['Status'] = 'Approved';
|
||||
$expenseArray['PaymentStatus'] = false;
|
||||
$expenseArray['FeesPaymentID'] = $paymentID;
|
||||
|
||||
$expenseArray['VoucherNumber'] = $data['BillNO'];
|
||||
$expenseArray['PaidTo'] = $data['StudentName'];
|
||||
$expenseArray['BranchCode'] = $data['UpdatedBy'];
|
||||
|
||||
$this->db->select('ID,TypeID');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user