From d00798fe393f206535a47752c94d06ef5134d2d2 Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Thu, 15 Nov 2018 11:06:52 +0530 Subject: [PATCH] data correction branch check --- Apollo/api/application/controllers/DayBook_Controller.php | 1 + Apollo/api/application/models/DayBook_model.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Apollo/api/application/controllers/DayBook_Controller.php b/Apollo/api/application/controllers/DayBook_Controller.php index 30e652bd..1df4ebdf 100755 --- a/Apollo/api/application/controllers/DayBook_Controller.php +++ b/Apollo/api/application/controllers/DayBook_Controller.php @@ -687,6 +687,7 @@ public function updateNonOperationalDetails_post() { $search['Firstname'] = $this->post('studentName'); $search['MobileNumber'] = $this->post('mobileNumber'); $search['receipt'] = $this->post('receipt'); + $search['branchId'] = $this->post('branchId'); $allfinace = $this->daybook_model->GetAllDaybook($search); diff --git a/Apollo/api/application/models/DayBook_model.php b/Apollo/api/application/models/DayBook_model.php index 6d8863bc..c8512761 100644 --- a/Apollo/api/application/models/DayBook_model.php +++ b/Apollo/api/application/models/DayBook_model.php @@ -1229,6 +1229,10 @@ $subQuery='select Name,ListName,q.Date as dat,month(str_to_date(Date,?)) as mont } + + $this->db->where('T_StudentDetails.BranchCode',$search['branchId']); + + $searchDetails = $this->db->get(); if($searchDetails->result())