Esempio n. 1
0
 /**
  * @return mixed
  */
 public function getItemsCollection()
 {
     $collection = $this->_cmItemCollectionFactory->create()->setCreditmemoFilter($this->getId());
     if ($this->getId()) {
         foreach ($collection as $item) {
             $item->setCreditmemo($this);
         }
     }
     return $collection;
 }
Esempio n. 2
0
 /**
  * @return mixed
  */
 public function getItemsCollection()
 {
     if (empty($this->_items)) {
         $this->_items = $this->_cmItemCollectionFactory->create()->setCreditmemoFilter($this->getId());
         if ($this->getId()) {
             foreach ($this->_items as $item) {
                 $item->setCreditmemo($this);
             }
         }
     }
     return $this->_items;
 }