We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1d961e + 9008e51 commit c797f35Copy full SHA for c797f35
app/code/Magento/Sales/Model/Order/Creditmemo.php
@@ -412,23 +412,6 @@ public function canCancel()
412
public function canVoid()
413
{
414
return false;
415
- $canVoid = false;
416
- if ($this->getState() == self::STATE_REFUNDED) {
417
- $canVoid = $this->getCanVoidFlag();
418
- /**
419
- * If we not retrieve negative answer from payment yet
420
- */
421
- if (is_null($canVoid)) {
422
- $canVoid = $this->getOrder()->getPayment()->canVoid();
423
- if ($canVoid === false) {
424
- $this->setCanVoidFlag(false);
425
- $this->_saveBeforeDestruct = true;
426
- }
427
- } else {
428
- $canVoid = (bool)$canVoid;
429
430
431
- return $canVoid;
432
}
433
434
/**
0 commit comments