protected function _getLatestActivity()
 {
     $revenues = new RevenueColl();
     $revHotelFiltr = new RevHotelFiltr();
     $revenues->addFilter($revHotelFiltr);
     $revFinacctFiltr = new RevFinacctFiltr();
     $revenues->addFilter($revFinacctFiltr);
     $revenues->setOrder('desc');
     $revenues->setLimit('10');
     $revenues->setAll();
     $this->_viewdata['revenues'] = $revenues;
 }
 public function add_revenue_data_csv()
 {
     if (!$this->securitypolicy->validateAccessRight(5, 'add')) {
         $this->_redirectInvalidAccess();
     }
     $this->load->helper('form');
     $revenueData = new Revenuedata();
     $this->_viewData['acctCat']['dropdown'] = $revenueData->getCatAsDropdown();
     $this->_viewData['acctCat']['default'] = "";
     if ($this->_viewData['status'] == 'success') {
         $this->_viewData['showmsg'] = true;
     }
     $revenues = new RevenueColl();
     $revHotelFiltr = new RevHotelFiltr();
     $revenues->addFilter($revHotelFiltr);
     $revFinacctFiltr = new RevFinacctFiltr();
     $revenues->addFilter($revFinacctFiltr);
     $revenues->setOrder('desc');
     $revenues->setLimit('10');
     $revenues->setAll();
     $hotels = new HotelColl();
     $hotels->setAll();
     $this->_viewData['hotels'] = $hotels;
     $this->_viewData['revenues'] = $revenues;
     $this->load->view('add_financial_info_csv', $this->_viewData);
 }