OpenMage / magento-lts

Official OpenMage LTS codebase | Migrate easily from Magento Community Edition in minutes! Download the source code for free or contribute to OpenMage LTS | Security vulnerability patches, bug fixes, performance improvements and more.
https://www.openmage.org
Open Software License 3.0
865 stars 436 forks source link

Stock Availability not updated after Creditmemo is created #2211

Open elidrissidev opened 2 years ago

elidrissidev commented 2 years ago

Preconditions (*)

  1. Should be happening in all recent OM and Magento versions.
  2. Ensure System -> Configuration -> Catalog -> Inventory -> Product Stock Options -> Automatically Return Credit Memo Item to Stock is set to "Yes".

Steps to reproduce (*)

  1. Create an order with all the qty left from a product such that it goes out of stock after placing the order.
  2. Create a Creditmemo for the order and make sure "Back to stock" checkbox is selected.

Expected result (*)

  1. Qty is refunded and product's Stock Availability is updated to "In Stock"

Actual result (*)

  1. Qty is refunded but product's Stock Availability remains to be "Out of Stock"
fballiano commented 2 years ago

As far as I remember it was never about resending the product to "saleable", it was just returning the quantity to stock.

So... in my opinion instead of a yes/no configuration it should be

so... nothing easy here