The ACSD-45424 patch fixes the issue where an incorrect reservation compensation is created after a partial refund. This patch is available when the Quality Patches Tool (QPT) 1.1.17 is installed. The patch ID is ACSD-45424. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.6.
The patch is created for Adobe Commerce version:
Compatible with Adobe Commerce versions:
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the
magento/quality-patches package to the latest version and check the compatibility on the QPT landing page. Use the patch ID as a search keyword to locate the patch.
Incorrect reservation compensation is created after a partial refund.
Steps to reproduce:
Enable in-store delivery shipping method.
Create three inventory sources and make sure the pickup location is active in each (source1, source2, source3).
Create a new stock and assign the three sources to the new stock.
Create a simple product, P3, and assign all the sources to it.
Add the following quantities for the sources of the simple product and enable backorders:
Add the simple product to the cart from the frontend and proceed to shipping form.
Select “source1” as the shipping location.
Complete the order and execute the following query in the database:
SELECT * FROM inventory_reservation WHERE sku = 'P3';
You will get the order placed record in the
inventory_reservation table. The quantity is 10, which is correct.
Invoice this order from the backend.
Now create a credit memo for only one product. DO NOT select the Return to Stock checkbox.
Execute the same query from Step 8.
If you did not select the Return to Stock during the credit memo creation, the
inventory_reservation table will not have a record corresponding to the credit memo.
Even though you didn’t select the Return to Stock during the credit memo creation, it adds a record to
inventory_reservation table with
creditmemo_created event type. Also, the credit memo record added in the
inventory_reservation table has a quantity of 10 even though you created the credit memo for only one quantity.
To apply individual patches, use the following links depending on your deployment method:
To learn more about Quality Patches Tool, refer to:
For info about other patches available in QPT, refer to Patches available in QPT in our developer documentation.