course details changes done
This commit is contained in:
parent
52a5fcf031
commit
9a0bd5b0a2
@ -1035,35 +1035,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){
|
||||||
if($data['ModeOfPayment']=='CASH'){
|
|
||||||
$insertArray['Date'] = $data['BillDate'];
|
|
||||||
$insertArray['CreatedBy'] = $data['CreatedBy'];
|
|
||||||
$insertArray['CreatedOn'] = $data['CreatedOn'];
|
|
||||||
$insertArray['Description'] = $data['InternalComments'];
|
|
||||||
$insertArray['Amount'] = $data['BillAmount'];
|
|
||||||
$insertArray['Status'] = 'Approved';
|
|
||||||
$insertArray['PaymentStatus'] = false;
|
|
||||||
$insertArray['FeesPaymentID'] = $paymentID;
|
|
||||||
|
|
||||||
$insertArray['BranchCode'] = $data['UpdatedBy'];
|
|
||||||
|
|
||||||
$this->db->select('ID,TypeID');
|
|
||||||
$this->db->where('TypeID', 'I002');
|
|
||||||
$this->db->where('TypeName', 'FEES');
|
|
||||||
$getIncome=$this->db->get(INCOMEOUTCOMEMASTER)->last_row();
|
|
||||||
|
|
||||||
if($getIncome){
|
|
||||||
$insertArray['Name'] = $getIncome->TypeID;
|
|
||||||
$insertArray['Type'] = $getIncome->ID;
|
|
||||||
$this->db->insert(DAYBOOKMASTER, $insertArray);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
// this is for income entry
|
// this is for income entry
|
||||||
$insertArray['Date'] = $data['BillDate'];
|
$insertArray['Date'] = $data['BillDate'];
|
||||||
$insertArray['CreatedBy'] = $data['CreatedBy'];
|
$insertArray['CreatedBy'] = $data['CreatedBy'];
|
||||||
@ -1113,11 +1084,8 @@ class Fees_status_model extends CI_Model
|
|||||||
$this->db->insert(DAYBOOKMASTER, $expenseArray);
|
$this->db->insert(DAYBOOKMASTER, $expenseArray);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user