ACSD-68400: The virtual gift card quantity is not accurately reflecting in the inventory reservation table.
The ACSD-68400 patch fixes the issue where the virtual gift card quantity is not accurately reflected in the inventory reservation table. This patch is available when the Quality Patches Tool (QPT) 1.1.73 is installed. The patch ID is ACSD-68400. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.6-p12
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.4 - 2.4.7-p8
magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
The virtual gift card quantity is not accurately reflecting in the inventory reservation table.
Steps to reproduce:
- Create a clean 2.4-develop instance.
- Log in to the admin.
- Create a virtual gift card.
- Edit the product and click on Advanced Inventory.
- Enable Manage Stock and set the quantity to 9999.
- Save the product
- Go to the Frontend and navigate to the Gift card category.
- Add a product with an amount of 25.
- Add a product with an amount of 50.
- Go to checkout and place the order.
- Check the last entry in the
inventory_reservationtable for the placed order. It should show a quantity of 2. - Go back to the admin panel and open the placed order from Sales > Orders.
- Click Invoice and submit an invoice for the order
- Check the
inventory_reservationtable again. It now shows a reservation of only 1 instead of 2.
Expected results:
Reservation should be created for the quantity that was ordered and invoiced, which is 2 in this case.
Actual results:
Reservation is created for only 1 instead of 2.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.