Esempio n. 1
0
 /**
  * Update grid collection according to chosen order
  *
  * @param \Magento\Sales\Model\Resource\Transaction\Grid\Collection $argument
  * @return \Magento\Sales\Model\Resource\Transaction\Grid\Collection
  */
 public function update($argument)
 {
     $order = $this->registryManager->registry('current_order');
     if ($order) {
         $argument->setOrderFilter($order->getId());
     }
     $argument->addOrderInformation(array('increment_id'));
     return $argument;
 }