{"data":{"id":"ACSD-51735","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where the order item status is incorrectly set to \"Ordered\" when the product stock is 0.","categories":["Order/Checkout"],"components":["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-33/acsd-51735-order-item-status-incorrectly-set","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-33/acsd-51735-order-item-status-incorrectly-set.md","blobSha":"41015c35b1d336987b0a6c22384d81b9d5b8abc3","description":"Order item status is incorrectly set to Ordered when the product stock is 0.","stepsToReproduce":"1. Create a new stock. 1. Create a new source. 1. Assign the default website to the new stock and assign the new source. 1. Create a new product. * Set the default source Qty to 10 and the new source Qty to 0. 1. Add the product to the cart on the storefront. 1. Observe the backorder warning on checkout, indicating that the product is coming from a new source. 1. Place the order. 1. Open the order in Admin, and check the backorder status.","introducedInQpt":"1.1.33","createdFor":["2.4.4-p1"],"documentedRange":"2.4.4 - 2.4.4-p4","scheduledFixRelease":"2.4.7"},"files":[{"package":"magento/inventory-metapackage","constraint":">=1.2.4 <1.2.5","path":"patches/os/ACSD-51735_1.2.4-p1.patch","blobSha":"66f16f316647b918b93fd82a372e5ddd73c5faf2","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-51735_1.2.4-p1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-inventory-sales/Model/GetBackorder.php","change":"added","package":"magento/module-inventory-sales"},{"path":"vendor/magento/module-inventory-sales/Model/GetBackorderQty.php","change":"added","package":"magento/module-inventory-sales"},{"path":"vendor/magento/module-inventory-sales/Model/IsProductSalableCondition/BackOrderNotifyCustomerCondition.php","change":"modified","package":"magento/module-inventory-sales"},{"path":"vendor/magento/module-inventory-sales/Plugin/StockState/CheckQuoteItemQtyPlugin.php","change":"modified","package":"magento/module-inventory-sales"},{"path":"vendor/magento/module-inventory-sales/Plugin/StockStateProvider/CheckQuoteItemQtyPlugin.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-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-51735 details"}