コード例 #1
0
ファイル: Order.php プロジェクト: shabbirvividads/magento2
 /**
  * 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();
 }
コード例 #2
0
ファイル: Order.php プロジェクト: shabbirvividads/magento2
 /**
  * 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();
 }
コード例 #3
0
ファイル: Order.php プロジェクト: shabbirvividads/magento2
 /**
  * Add selected data
  *
  * @return $this
  */
 protected function _initSelect()
 {
     $this->getSelect()->from($this->getResource()->getMainTable());
     return parent::_initSelect();
 }
コード例 #4
0
ファイル: Collection.php プロジェクト: aiesh/magento2
 /**
  * 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();
 }