-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Open
Labels
Issue: needs updateAdditional information is require, waiting for responseAdditional information is require, waiting for responseReported on 2.4.8-p2Indicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject itIssue related to Developer Experience and needs help with Triage to Confirm or Reject it
Description
Preconditions and environment
Magento version : 2.4.8-p2 CE
PHP 8.3
mysql: 8.0.42
elasticsearch: 8.11
Issue discovered running integration tests, after upgrade from Magento 2.4.7
Steps to reproduce
- Create simple product with stock data
['use_config_manage_stock' => 1, 'qty' => 0, 'is_qty_decimal' => 0, 'is_in_stock' => 0]
- Update stock item
/** \Magento\InventoryApi\Api\Data\SourceItemInterfaceFactory */
$sourceItem = $this->sourceItemInterfaceFactory->create(['data' => [
'sku' => '[sku]',
'source_code' => 'default',
'quantity' => 10,
'status' => 1
]]);
/** \Magento\Inventory\Model\SourceItem\Command\SourceItemsSave */
$this->sourceItemsSave->execute([$sourceItem]);
- check $product->isSalable()
Expected result
Product should be salable after source item update.
Actual result
Legacy stock status is not updated, which causes the problem with product availability.
Additional information
In Magento 2.4.8 the \Magento\InventoryCatalog\Model\SourceItemsSaveSynchronization\SetDataToLegacyCatalogInventory has been rewritten.
magento/inventory@9659ed9#diff-bae52abf5559f41d7f3464d6171bb3ccf703b610d977014b4626098eb3643a05
In the class \Magento\InventoryCatalog\Model\UpdateDefaultStock:78 $statusAfter
is false which prevents legacy stock update.
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
Issue: needs updateAdditional information is require, waiting for responseAdditional information is require, waiting for responseReported on 2.4.8-p2Indicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject itIssue related to Developer Experience and needs help with Triage to Confirm or Reject it
Type
Projects
Status
Needs Update