QUALITY PATCH

ACSD-52202: Default stock salable quantity changes to 0 in error when non-default stock is set to 0…

Default stock salable quantity changes to 0 in error when non-default stock is set to 0 quantity in an order. Quality patch ACSD-52202 for magento/module-inventory-catalog applies to Magento Open Source and Adobe Commerce 2.4.3 to 2.4.6-p15.

Categories
Inventory
Components
magento/module-inventory-catalog
Origin
adobe-commerce-support
Since QPT
1.1.35

Issue

Default stock salable quantity changes to 0 in error when non-default stock is set to 0 quantity in an order.

Steps to reproduce

1. Log in to the Admin. 1. Create website2. 1. Create custom source2. 1. Create custom stock2. 1. Assign the source2 and stock2 to website1 and the default source and stock to the default website. 1. Create a simple product and assign qty = 10 for default source and qty = 1 for the source2 source. 1. Place an order with qty = 1 for website2. 1. Create an invoice and a shipment. 1. Check the simple product salable quantity.

Adobe's page lists 2.4.3 - 2.4.6-p1 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.

Adobe scheduled the permanent fix for 2.4.7.

Install

Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACSD-52202. On Cloud, add ACSD-52202 under stage.build.QUALITY_PATCHES in .magento.env.yaml.

For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACSD-52202/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.

Patch files and compatible versions

Packages across compatible versions (1): magento/module-inventory-catalog
Packages across compatible versions (1): magento/module-inventory-catalog

Sources

Łukasz Bajsarowicz
Built by

Łukasz Bajsarowicz, e-commerce architect

Magento and Adobe Commerce architecture, upgrades, performance and audits for merchants and agencies since 2015; magento.watch is the tooling I use on those projects.

Open source, maintained on weekends.