Пример #1
0
 /**
  * @return array
  */
 public function getSubTotals()
 {
     $filterData = $this->getFilterData();
     $subTotalsCollection = $this->_resourceFactory->create($this->getResourceCollectionName())->setPeriod($filterData->getData('period_type'))->setDateRange($filterData->getData('from', null), $filterData->getData('to', null))->addStoreFilter($this->_getStoreIds())->setAggregatedColumns($this->_getAggregatedColumns())->isSubTotals(true);
     $this->_addOrderStatusFilter($subTotalsCollection, $filterData);
     $this->_addCustomFilter($subTotalsCollection, $filterData);
     $this->setSubTotals($subTotalsCollection->getItems());
     return parent::getSubTotals();
 }