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