{"data":{"id":"ACSD-49042","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where a product with infinite backorder cannot be ordered from the Storefront.","categories":["Inventory"],"components":["magento/module-inventory-indexer","magento/module-inventory-sales"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-27/acsd-49042-product-with-infinite-backorder-cant-be-ordered-from-storefront","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-27/acsd-49042-product-with-infinite-backorder-cant-be-ordered-from-storefront.md","blobSha":"1130a5348c89a855f62d82301b8412f88325252d","description":"The error occurs when a product with infinite backorder cannot be ordered from the storefront.","stepsToReproduce":"1. Set the following configuration settings: * Display Out of Stock Products set to Yes. * Backorders set to Allow Qty Below 0. 1. Add a new custom stock and custom source. 1. Assign a product to the custom source and make sure there is an inventory number set for it (For Example: 10). 1. On the product edit page, open Advanced Inventory. Set the minimum quantity in the cart, (For Example: 160). The quantity must be above inventory. 1. Go to the storefront and buy a product to create a reservation. 1. Change the product quantity to 0. The critical point is to save the product from the Admin panel when there is a reservation. 1. Open the product page on the storefront and try to add the product to the cart.","introducedInQpt":"1.1.27","createdFor":["2.4.4"],"documentedRange":"2.4.4 - 2.4.4-p2","scheduledFixRelease":null},"files":[{"package":"magento/inventory-metapackage","constraint":">=1.2.4 <1.2.5","path":"patches/os/ACSD-49042_1.2.4.patch","blobSha":"ed239aa9899e4051d99f97860566acefb9e86a50","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-49042_1.2.4.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-inventory-indexer/etc/di.xml","change":"modified","package":"magento/module-inventory-indexer"},{"path":"vendor/magento/module-inventory-sales/Model/GetProductAvailableQty.php","change":"added","package":"magento/module-inventory-sales"},{"path":"vendor/magento/module-inventory-sales/Model/IsProductSalableCondition/IsSalableWithReservationsCondition.php","change":"modified","package":"magento/module-inventory-sales"},{"path":"vendor/magento/module-inventory-sales/Model/ResourceModel/IsStockItemSalableCondition/BackordersCondition.php","change":"modified","package":"magento/module-inventory-sales"},{"path":"vendor/magento/module-inventory-sales/Model/ResourceModel/IsStockItemSalableCondition/MinQtyStockWithReservationsCondition.php","change":"added","package":"magento/module-inventory-sales"},{"path":"vendor/magento/module-inventory-sales/etc/di.xml","change":"modified","package":"magento/module-inventory-sales"}],"packages":["magento/module-inventory-indexer","magento/module-inventory-sales"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4"],"magento-commerce":["2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4"],"mage-os":[]},"unknownVersions":["2.3.7-p4","2.3.7-p3","2.3.7-p2","2.3.7-p1","2.3.7","2.3.6-p1","2.3.6","2.3.5-p2","2.3.5-p1","2.3.5","2.3.4-p2","2.3.4-p1","2.3.4","2.3.3-p2","2.3.3","2.3.2-p2","2.3.2-p1","2.3.2","2.3.1","2.3.0"],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":["2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4"],"magento-commerce":["2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-49042 details"}