Magento2: Magento 2.2.0 partial Credit Memo/Refund not working

Created on 23 Aug 2017  路  8Comments  路  Source: magento/magento2


Preconditions


  1. Magento 2.2.0-dev with out sample data
  2. Default payment (Braintree(credit card) and Check/Money)

Steps to reproduce

  1. Log in
  2. Add to product in shopping cart
  3. Proceeding orders with Braintree(credit card) payment.
  4. Go to shop admin and create the invoice for Braintree(credit card) order.
  5. Now displayed the _Credit Memo_ button
  6. In Grand total are 17 euro, We have refunded the 12 euro. Please check the below screen shot.
    image
  7. Now order status set the _closed_ status. Please refer the screen shot.
    image
  8. Next we have try to refund the remain amount (5 euro). Now _Credit Memo_ button not available in order/invoice history. Please refer screen shot for Order history
    image
    and Invoice history.
    image

Expected result

  1. We have refund partial amount, display the _Credit Memo_ button. Once refund full amount, hide the _Credit Memo_ button.

Actual result

  1. _Credit Memo_ button not available for partial refund method.

_Note:_
_We have check the same Magento 2.0.x and 2.1.x, everything working properly._

Payment Sales Format is valid needs update bug report

All 8 comments

Hi, @sankar1061, I've checked described issue on the fresh installation with latest 2.2-develop branch and seems all works as expected. I've tried to simulate two situations:

  1. partial invoice & partial refund
    refund

  2. full invoice & partial refund
    refund2

In both cases, the order is still in the Processing status and as you can see there is a possibility to create another invoice or refund.

Did you have some installed extensions? Also, please, provide debug and exception logs.

Note: if you are using Braintree sandbox account, you can't perform online refunds, the capture transaction should be submitted for a settle manually by using Braintree SDK. For more details, please, see Braintree documentation.

Hi @joni-jones,
We have download the module(magento 2.2.0) and fresh installed. And we have checked the same in _Check / Money order_ payment. But order status changed the closed status and hide the _Credit Memo_ button. Please refer the screen shot
image

I've checked with Check / Money order and the order in the Processing state and partial credit memo is available:
checmo
Please, provide exception log or PHP error log.

We have download the module(magento 2.2.0)

Is it 2.2.0-preview branch? If not, how you download 2.2.0, it's not published yet.

Hi @joni-jones,
We have checked and does not generated exception log or php error log. And we have wrongly mentioned Magento version. We have used the

Magento ver. 2.3.0-dev

. So please check the same in Magento ver 2.3.0-dev module.

As expected:
2 3 0-dev

@sankar1061, we are closing this issue due to inactivity. If you'd like to update it, please reopen the issue.

Does anyone know what exactly was changed in 2.3.x to fix this issue? If it is possible to temporarily port that change into 2.2.x, that would be wonderful.

After upgrading to 2.3.1, and switching from deprecated authorize.net MD5 based hash direct post to SHA-512 signature key method, I find that partial refunds are no longer supported again. Old module used to have settings of protected $_canRefundInvoicePartial = true; at _vendor/magento/module-authorizenet/Model/Directpost.php:68_. Anyone be kind enough to suggest what and how to extend module-authorizenet-acceptjs to support partial refunds? I have also submitted a question to magento.stackexchange.com

Was this page helpful?
0 / 5 - 0 ratings