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 8e3ca1f + ddd81f2 commit fc7a956Copy full SHA for fc7a956
app/code/Magento/Braintree/Model/PaymentMethod.php
@@ -918,8 +918,8 @@ protected function processSuccessResult(
918
*/
919
public function canVoid()
920
{
921
- if (($order = $this->_registry->registry('current_order'))
922
- && $order->getId() && $order->hasInvoices() ) {
+ if ((($order = $this->_registry->registry('current_order'))
+ && $order->getId() && $order->hasInvoices()) || $this->_registry->registry('current_invoice')) {
923
return false;
924
}
925
return $this->_canVoid;
0 commit comments