{"data":{"id":"MDVA-42584","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where configurable stock status in the backend is not updated after changing qty and stock status via Import or API.","categories":["Catalog/Product"],"components":["magento/module-inventory-configurable-product","magento/module-configurable-import-export","magento/module-configurable-product"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-10/mdva-42584-stock-status-of-configurable-product-not-updated-automatically","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-10/mdva-42584-stock-status-of-configurable-product-not-updated-automatically.md","blobSha":"621c219c80242c35f36b2f6156c74c72a845b56e","description":"Stock status of the configurable product in the backend is not updated automatically when its simple product is set to In Stock through API or import.","stepsToReproduce":"1. Create a configurable product, InvCheck001, with two options: InvCheck001-M and InvCheck001-L. 1. Both the simple products should have Quantity and they should be In Stock so that the configurable product is also In Stock in the backend. 1. Now, update both simple products and set Quantity to 0 and Stock Status to Out of Stock. 1. Refresh the configurable product and verify the stock status is updated to Out of Stock. 1. Use the following API endpoint and set the simple product InvCheck001-M to In Stock with Quantity > 0. /rest/V1/inventory/source-items { \"sourceItems\": [ { \"sku\": \"InvCheck001-M\", \"source_code\": \"default\", \"quantity\": 10, \"status\": 1 } ] } 1. Go to the backend and verify the quantity and stock status of the simple product InvCheck001-M. It is updated to In stock. 1. Refresh the configurable product and check the stock status.","introducedInQpt":"1.1.10","createdFor":["2.4.2-p2"],"documentedRange":"2.4.2 - 2.4.2-p2","scheduledFixRelease":"2.4.5"},"files":[{"package":"magento/inventory-metapackage","constraint":">=1.2.2 <1.2.3","path":"patches/os/MDVA-42584_1.2.2.patch","blobSha":"0847a06eac8fa95b16fadada5fababc88a18f6d8","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/MDVA-42584_1.2.2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-inventory-configurable-product/Plugin/InventoryApi/UpdateConfigurableProductParentStockStatus.php","change":"added","package":"magento/module-inventory-configurable-product"},{"path":"vendor/magento/module-inventory-configurable-product/etc/di.xml","change":"modified","package":"magento/module-inventory-configurable-product"}],"packages":["magento/module-inventory-configurable-product"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.2-p2","2.4.2-p1","2.4.2"],"magento-commerce":["2.4.2-p2","2.4.2-p1","2.4.2"],"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":["MDVA-40488"],"replacedWith":"MDVA-41061-V4","deprecated":false},{"package":"magento/inventory-metapackage","constraint":">=1.2.3 <1.2.4","path":"patches/os/MDVA-44500_1.2.3-p1.patch","blobSha":"cff20e4b94701e0c78d0b2a5a2f0c0ba46737652","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/MDVA-44500_1.2.3-p1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-inventory-configurable-product/Plugin/InventoryApi/UpdateConfigurableProductParentStockStatus.php","change":"added","package":"magento/module-inventory-configurable-product"},{"path":"vendor/magento/module-inventory-configurable-product/etc/di.xml","change":"modified","package":"magento/module-inventory-configurable-product"}],"packages":["magento/module-inventory-configurable-product"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3"],"magento-commerce":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3"],"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":["MDVA-40488"],"replacedWith":"MDVA-41061-V4","deprecated":false},{"package":"magento/magento2-base","constraint":">=2.4.2 <2.4.3","path":"patches/os/MDVA-42584_2.4.2-p2.patch","blobSha":"3ce578d5e3a26ee00da9affdd19644def9e9134e","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/MDVA-42584_2.4.2-p2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-configurable-import-export/Plugin/Import/Product/UpdateConfigurableProductsStockItemStatusPlugin.php","change":"added","package":"magento/module-configurable-import-export"},{"path":"vendor/magento/module-configurable-import-export/etc/di.xml","change":"modified","package":"magento/module-configurable-import-export"},{"path":"vendor/magento/module-configurable-product/Model/Inventory/ChangeParentStockStatus.php","change":"added","package":"magento/module-configurable-product"},{"path":"vendor/magento/module-configurable-product/Model/Inventory/ParentItemProcessor.php","change":"modified","package":"magento/module-configurable-product"}],"packages":["magento/module-configurable-import-export","magento/module-configurable-product"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.2-p2","2.4.2-p1","2.4.2"],"magento-commerce":["2.4.2-p2","2.4.2-p1","2.4.2"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":"MDVA-41061-V4","deprecated":false}],"applicableVersions":{"magento-community":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2"],"magento-commerce":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch MDVA-42584 details"}