public function expiryScheduleAction()
 {
     $level = $this->_request->getParam('level');
     $this->view->level = $level;
     switch ($level) {
         case 2:
             $params["loc_id"] = $this->_request->getParam('province');
             break;
         case 6:
             $params["loc_id"] = $this->_request->getParam('district');
             break;
     }
     $item = $this->_request->getParam('item');
     $wh_data = new Model_WarehousesData();
     $params["item"] = $item;
     $params["level"] = $level;
     $wh_data->form_values = $params;
     $xmlstore = $wh_data->getExpirySchedule();
     $this->view->xmlstore = $xmlstore;
     $title = "Stock Expiring in <= 6 Months";
     $wh_data = new Model_WarehousesData();
     $params["level"] = $level;
     $params["item_id"] = $item;
     $params["type"] = 1;
     $wh_data->form_values = $params;
     $data = $wh_data->getExpiryScheduleByType();
     $this->view->data = $data;
     $this->view->title = $title;
 }