示例#1
0
 /**
  * Create pdf for current creditmemo
  *
  * @return ResponseInterface|\Magento\Backend\Model\View\Result\Forward
  */
 public function execute()
 {
     $this->creditmemoLoader->setOrderId($this->getRequest()->getParam('order_id'));
     $this->creditmemoLoader->setCreditmemoId($this->getRequest()->getParam('creditmemo_id'));
     $this->creditmemoLoader->setCreditmemo($this->getRequest()->getParam('creditmemo'));
     $this->creditmemoLoader->setInvoiceId($this->getRequest()->getParam('invoice_id'));
     $this->creditmemoLoader->load();
     return parent::execute();
 }
示例#2
0
 /**
  * {@inheritdoc}
  */
 public function dispatch(\Magento\Framework\App\RequestInterface $request)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'dispatch');
     if (!$pluginInfo) {
         return parent::dispatch($request);
     } else {
         return $this->___callPlugins('dispatch', func_get_args(), $pluginInfo);
     }
 }
示例#3
0
 /**
  * Create pdf for current creditmemo
  *
  * @return ResponseInterface|void
  */
 public function execute()
 {
     $this->_title->add(__('Credit Memos'));
     $this->creditmemoLoader->setOrderId($this->getRequest()->getParam('order_id'));
     $this->creditmemoLoader->setCreditmemoId($this->getRequest()->getParam('creditmemo_id'));
     $this->creditmemoLoader->setCreditmemo($this->getRequest()->getParam('creditmemo'));
     $this->creditmemoLoader->setInvoiceId($this->getRequest()->getParam('invoice_id'));
     $this->creditmemoLoader->load();
     parent::execute();
 }
示例#4
0
 /**
  * Create pdf for current creditmemo
  *
  * @return ResponseInterface|void
  */
 public function execute()
 {
     $this->_title->add(__('Credit Memos'));
     $this->creditmemoLoader->load($this->_request);
     parent::execute();
 }