/** * Add selected data * * @return \Magento\Sales\Model\Resource\Report\Refunded\Collection\Order */ protected function _initSelect() { $this->getSelect()->from($this->getResource()->getMainTable(), $this->_getSelectedColumns()); if (!$this->isTotals()) { $this->getSelect()->group($this->_periodFormat); } return parent::_initSelect(); }
/** * Add selected data * * @return $this */ protected function _initSelect() { $this->getSelect()->from($this->getResource()->getMainTable(), $this->_getSelectedColumns()); if (!$this->isTotals() && !$this->isSubTotals()) { $this->getSelect()->group([$this->_periodFormat, 'shipping_description']); } if ($this->isSubTotals()) { $this->getSelect()->group([$this->_periodFormat]); } return parent::_initSelect(); }
/** * Add selected data * * @return $this */ protected function _initSelect() { $this->getSelect()->from($this->getResource()->getMainTable()); return parent::_initSelect(); }
/** * Add selected data * * @return $this */ protected function _initSelect() { $this->getSelect()->from($this->getResource()->getMainTable(), $this->_getSelectedColumns()); if (!$this->isTotals() && !$this->isSubTotals()) { $this->getSelect()->group(array($this->_periodFormat, 'code', 'percent')); } if ($this->isSubTotals()) { $this->getSelect()->group(array($this->_periodFormat)); } return parent::_initSelect(); }