Skip to content

Commit 86c84a4

Browse files
committed
Fix buttonId for credit memo button on admin invoice view
1 parent c224526 commit 86c84a4

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Sales/Block/Adminhtml/Order/Invoice

1 file changed

+2
-2
lines changed

app/code/Magento/Sales/Block/Adminhtml/Order/Invoice/View.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ protected function _construct()
113113
$orderPayment->canRefund() && !$this->getInvoice()->getIsUsedForRefund()
114114
) {
115115
$this->buttonList->add(
116-
'capture',
117-
[ // capture?
116+
'credit-memo',
117+
[
118118
'label' => __('Credit Memo'),
119119
'class' => 'credit-memo',
120120
'onclick' => 'setLocation(\'' . $this->getCreditMemoUrl() . '\')'

0 commit comments

Comments
 (0)