cancel
Showing results for 
Search instead for 
Did you mean: 

Credit memo "Return to Stock" not working properly, Configurable Product

SOLVED

Credit memo "Return to Stock" not working properly, Configurable Product

2021-02-22 Edit:

I'm going to chalk this up to extension incompatibility.  I believe an extension I purchased to customize the Order, Invoice, Credit Memo, and Shipment numbers caused this issue.  I've removed it, and now the Stock reservations, count updates, etc seem to be working correctly.

 

Magento 2.4.1

Stores->Configuration->Sales->Payment Methods->Braintree (sandbox)->Payment Action = "Intent Sale" (same as "Authorize and Capture")

Stores->Configuration->Catalog->Inventory->Stock Options->"Decrease Stock When Order is Placed" = Yes

Stores->Configuration->Catalog->Inventory->Product Stock Options->"Automatically Return Credit Memo Item to Stock" = No

 

Because all Payment Action is "Auth and Capture", the Orders are automatically Invoiced and Order Status is: "Processing"

 

1) Customer purchases a quantity of a Product Variation (a child product of the configurable product), in this case the remaining stock:

Quantity shows: 0

Salable Quantity shows Default stock: 0

 

2) Issue a Credit Memo to Refund (either before Shipping or after Shipping, it doesn't matter), open the Invoice and click on "Credit Memo" at the top of the window, select "Return to Stock" for all line items.

2021-02-19 Credit Memo Screenshot 09-37-47.jpg

The Quantity and Salable Quantity for each Simple Product Variation is NOT getting updated, they both show 0.

2021-02-19 Product quantities after Credit Memo Screenshot 09-54-18.jpg

However, if I manually update product Quantity and Stock Status (to In Stock) for each Simple Product Variation - the Quantity is updated BUT the Salable Quantity/Default Stock now includes the Credited Stock so that the Quantity and Salable Quantity are way out of sync.

2021-02-19 Manually updated quantities Screenshot 10-13-53.jpg

Stock status is now all messed up - Salable Quantity / Default Stock is wrong!

 

It seems like neither the Inventory Reservation table or the product Stock Quantity are being updated properly when an order is returned to stock.

 

This seems like a serious bug...?

Evelyn

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Credit memo "Return to Stock" not working properly, Configurable Product

2021-02-22 Edit:

I'm going to chalk this up to extension incompatibility.  I believe an extension I purchased to customize the Order, Invoice, Credit Memo, and Shipment numbers caused this issue.  I've removed it, and now the Stock reservations, count updates, etc seem to be working correctly.

View solution in original post

1 REPLY 1

Re: Credit memo "Return to Stock" not working properly, Configurable Product

2021-02-22 Edit:

I'm going to chalk this up to extension incompatibility.  I believe an extension I purchased to customize the Order, Invoice, Credit Memo, and Shipment numbers caused this issue.  I've removed it, and now the Stock reservations, count updates, etc seem to be working correctly.

View solution in original post