Skip to content

Grouped product stock status not changing to in stock when its child is added with qty and set as in stock through rest api #37960

Open
@rajeshScodilar123

Description

@rajeshScodilar123

Preconditions and environment

  • Magento version : 2.4.3 p1

Steps to reproduce

  1. Create an grouped product with 1 child product, keep parent as well as child out of stock
  2. Update the child stock using rest api the below endpoint and body
    endpoint : http://samplemagento243p1.com/rest/V1/products/{SKU}/stockItems/{item_id} (PUT)
    bearer token : use admin bearer token
    body : {"stockItem":{"qty":48, "is_in_stock": true}}

Expected result

  1. child qty should be updated to 48 and stock status should be in stock
  2. Parent grouped product stock status should be in stock

Actual result

  1. child qty should be updated to 48 and stock status should be in stock
  2. Parent grouped product stock status not changing to in stock

Additional information

It works fine when we update the qty and stock status of child from admin. Parent stock status automatically changed to in stock

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

No one assigned

    Labels

    Area: ProductComponent: ApiUse with concrete module component label E.g. "Component: Api" + "Catalog"Component: StockIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: ready for devReported on 2.4.3-p1Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions