diff --git a/Controller/Adminhtml/PayLink/Index.php b/Controller/Adminhtml/PayLink/Index.php index cd853e384..04fac3b29 100644 --- a/Controller/Adminhtml/PayLink/Index.php +++ b/Controller/Adminhtml/PayLink/Index.php @@ -93,7 +93,7 @@ public function execute(): ResultInterface try { $commandExecutor = $this->commandManagerPool->get('buckaroo'); - $result = $commandExecutor->executeByCode( + $commandExecutor->executeByCode( 'paylink', $payment, [ diff --git a/Observer/SalesOrderShipmentAfter.php b/Observer/SalesOrderShipmentAfter.php index 2bb401461..521e37671 100644 --- a/Observer/SalesOrderShipmentAfter.php +++ b/Observer/SalesOrderShipmentAfter.php @@ -215,7 +215,7 @@ private function createInvoice(bool $allowPartialsWithDiscount = false) $invoice = $this->invoiceService->prepareInvoice($this->order); $message = 'Automatically invoiced full order (can not invoice partials with discount)'; } else { - $qtys = $this->getQtys($this->shipment); + $qtys = $this->getQtys(); $invoice = $this->invoiceService->prepareInvoice($this->order, $qtys); $message = 'Automatically invoiced shipped items.'; }