Skip to content

Commit d3b0e89

Browse files
author
Viktor Tymchynskyi
committed
MAGETWO-24173: "Void" button available after "Deny Payment" operation
1 parent 0e589aa commit d3b0e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Sales/Model/Order.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ public function canVoidPayment()
519519
*/
520520
protected function _canVoidOrder()
521521
{
522-
return !($this->canUnhold() || $this->isPaymentReview());
522+
return !($this->isCanceled() || $this->canUnhold() || $this->isPaymentReview());
523523
}
524524

525525
/**

0 commit comments

Comments
 (0)