Пример #1
0
 public function balanceReportChartDataAction()
 {
     $xhb = $this->getXhbSession()->getModel();
     $collFilters = array('period' => $this->getRequestQuery('period') ? $this->getRequestQuery('period') : Main::app()->getConfig('DEFAULT_OPERATIONS_PERIOD'));
     $accountCollection = $xhb->getAccountCollection()->addFieldToFilter('type', Constants::ACC_TYPE_BANK);
     $accountIds = $accountCollection->getAllIds();
     $chartData = Chart\Operation::getBalanceReportData($xhb, $collFilters, $accountIds, true);
     $this->setPageConfig(array('template' => 'data/json.phtml', 'mime' => 'application/json'));
     $this->getView()->setData('DATA', $chartData);
 }
Пример #2
0
 public function balanceReportChartDataAction()
 {
     $collFilters = array('period' => $this->getRequestQuery('period') ? $this->getRequestQuery('period') : Main::app()->getConfig('DEFAULT_OPERATIONS_PERIOD'));
     $chartData = Chart\Operation::getBalanceReportData($this->getXhbSession()->getModel(), $collFilters, array($this->getAccount()->getId()));
     $this->setPageConfig(array('template' => 'data/json.phtml', 'mime' => 'application/json'));
     $this->getView()->setData('DATA', $chartData);
 }