Пример #1
0
 public function getStockBatchDetailAction()
 {
     $product = $this->_request->getParam('product', '');
     $district = $this->_request->getParam('district', '');
     $tehsil = $this->_request->getParam('tehsil', '');
     $geoModel = new Model_Geo();
     if ($district != "") {
         $return = $geoModel->getDistrictStockBatch($district, $product);
     } else {
         $return = $geoModel->getTehsilStockBatch($tehsil, $product);
     }
     echo Zend_Json::encode($return);
 }