day book entry changes done in fees screen
This commit is contained in:
parent
025f0eeadb
commit
9f1060ebdf
@ -1120,7 +1120,6 @@ class Fees_status_model extends CI_Model
|
|||||||
* created by kms
|
* created by kms
|
||||||
* */
|
* */
|
||||||
public function insertDayBookMaster($data=null,$paymentID){
|
public function insertDayBookMaster($data=null,$paymentID){
|
||||||
$this->db->distinct();
|
|
||||||
$this->db->select('Firstname');
|
$this->db->select('Firstname');
|
||||||
$this->db->where('StudentID', $data['StudentID']);
|
$this->db->where('StudentID', $data['StudentID']);
|
||||||
$getStudentName=$this->db->get(STUDENTS)->result();
|
$getStudentName=$this->db->get(STUDENTS)->result();
|
||||||
@ -1148,7 +1147,7 @@ class Fees_status_model extends CI_Model
|
|||||||
$insertArray['Name'] = $getIncome->TypeID;
|
$insertArray['Name'] = $getIncome->TypeID;
|
||||||
$insertArray['Type'] = $getIncome->ID;
|
$insertArray['Type'] = $getIncome->ID;
|
||||||
$checkInsertIn=$this->add_dayBook($insertArray);
|
$checkInsertIn=$this->add_dayBook($insertArray);
|
||||||
if($checkInsertIn['addDayBookStatus']==true){
|
if($checkInsertIn['addDayBookStatus']==true AND $data['ModeOfPayment']!='CASH'){
|
||||||
// this is for expense come entry
|
// this is for expense come entry
|
||||||
$now1 = new DateTime();
|
$now1 = new DateTime();
|
||||||
$now1->setTimezone(new DateTimezone('Asia/Kolkata'));
|
$now1->setTimezone(new DateTimezone('Asia/Kolkata'));
|
||||||
@ -1159,7 +1158,7 @@ class Fees_status_model extends CI_Model
|
|||||||
$expenseArray['Description'] = $data['InternalComments'];
|
$expenseArray['Description'] = $data['InternalComments'];
|
||||||
$expenseArray['PaidDescription'] = "";
|
$expenseArray['PaidDescription'] = "";
|
||||||
$expenseArray['Amount'] = $data['BillAmount'];
|
$expenseArray['Amount'] = $data['BillAmount'];
|
||||||
$expenseArray['Status'] = 'Approved';
|
$expenseArray['Status'] = 'Pending';
|
||||||
$expenseArray['PaymentStatus'] = false;
|
$expenseArray['PaymentStatus'] = false;
|
||||||
$expenseArray['FeesPaymentID'] = $paymentID;
|
$expenseArray['FeesPaymentID'] = $paymentID;
|
||||||
$expenseArray['VoucherNumber'] = $data['BillNO'];
|
$expenseArray['VoucherNumber'] = $data['BillNO'];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user