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())