Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable product goes to out of stock after the shipment is created for one child product #37364

Closed
5 tasks done
rajesh291994 opened this issue Apr 12, 2023 · 31 comments
Closed
5 tasks done
Assignees
Labels
Issue: needs update Additional information is require, waiting for response Reported on 2.4.x Indicates original Magento version for the Issue report.

Comments

@rajesh291994
Copy link

Preconditions and environment

  • Magento version
  • Anything else that would help a developer reproduce the bug

Steps to reproduce

We have a multi website (2 website) and multi source configuration in our magento 2 setup

  1. Assign single source to multiple stocks
  2. Assign a stock to all the websites
  3. Create configurable product(2 options) and assign qty to source(10 qty to each product)
  4. Place an order with one qty from frontend from one of the website
  5. Create an shipment in for that particular order
  6. You will notice that parent configurable product goes out of stock automatically. That product will be out of stock for both the website where only one qty is shipped

Expected result

Parent configurable product should not go out of stock as only one item from child product is been shipped.

Actual result

Parent configurable product goes out of stock after creating shipment.

Additional information

No response

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”.
@m2-assistant
Copy link

m2-assistant bot commented Apr 12, 2023

Hi @rajesh291994. Thank you for your report.
To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:


Join Magento Community Engineering Slack and ask your questions in #github channel.
⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
🕙 You can find the schedule on the Magento Community Calendar page.
📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

@m2-assistant
Copy link

m2-assistant bot commented Apr 12, 2023

Hi @engcom-Bravo. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
  • 3. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
  • 4. Verify that the issue is reproducible on 2.4-develop branch
    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
  • 5. Add label Issue: Confirmed once verification is complete.
  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@engcom-Bravo engcom-Bravo added the Reported on 2.4.x Indicates original Magento version for the Issue report. label Apr 12, 2023
@engcom-Bravo
Copy link
Contributor

@magento give me 2.4-develop instance

@magento-deployment-service
Copy link

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

@magento-deployment-service
Copy link

@engcom-Bravo
Copy link
Contributor

Hi @rajesh291994,

Thank you for reporting and collaboration.

Verified the issue on Magento 2.4-develop instance and the issue is not reproducible.Kindly refer the screenshots.

Steps to reproduce

We have Created a multi website (2 website) and multi source configuration in our magento 2 setup

  • Assign single source to multiple stocks
  • Assign a stock to all the websites
  • Create configurable product(2 options) and assign qty to source(10 qty to each product)
  • Place an order with one qty from frontend from one of the website
  • Create an shipment in for that particular order
  • You will notice that parent configurable product goes out of stock automatically. That product will be out of stock for both the website where only one qty is shipped

Screenshot 2023-04-13 at 2 50 28 PM

After shipment the configurable product is still in in stock.only 1 quantity of child product has been shipped.

Kindly recheck the behavior on Magento 2.4-develop instance and elaborate steps to reproduce if the issue is still reproducible.

Thanks.

@engcom-Bravo engcom-Bravo added the Issue: needs update Additional information is require, waiting for response label Apr 13, 2023
@rajesh291994
Copy link
Author

@engcom-Bravo, I checked the scenarios in the sample magento 2.4.5 p1. It is reproducable kindly check the setting done
It has two websites:

  1. Created two source named (india and usa)
  2. Created two stock named (stock for india and Stock for usa)
  3. Assign both source to both the stocks
    Screenshot from 2023-04-17 12-33-15
  4. Created configurable product with two child and assigned the qty for all the sources
  5. When we place order and create shipment. It's parent product goes out of stock automatically.
  6. Please refer the video screen recording for the same
    Screencast from 17-04-23 12:30:09 PM IST.webm

@engcom-Bravo
Copy link
Contributor

@magento give me 2.4-develop instance

@magento-deployment-service
Copy link

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

@magento-deployment-service
Copy link

@engcom-Bravo
Copy link
Contributor

Hi @rajesh291994,

Thanks for your update.

Verified the issue on Magento 2.4-develop instance and the issue is not reproducible.Kindly refer the screenshots.

Steps to reproduce

  • Created two source named (india and usa)
  • Created two stock named (stock for india and Stock for usa)
  • Assign both source to both the stocks
  • Created configurable product with two child and assigned the qty for all the sources
  • Place the order and create shipment.

Screenshot 2023-04-17 at 2 47 23 PM

Screenshot 2023-04-17 at 2 47 00 PM

In frontend the product is still in stock.We have verified for both configurable product and simple product.After creating shipment the product is in still in stock.

Screenshot 2023-04-17 at 2 47 42 PM

Kindly recheck the behavior on Magento 2.4-develop instance and elaborate steps to reproduce if the issue is still reproducible.
it is recommended to verify the issue on Magento 2.4-develop instance as it is an upcoming 2.4.x release and have latest code base.

Thanks.

@rajesh291994
Copy link
Author

@engcom-Bravo,

  1. I not sure why it is not getting reproduced for you.
  2. Can I access the magento instance you worked on to reproduced the issue as that provided instances not seems to be working any more

@rajesh291994 rajesh291994 reopened this Apr 18, 2023
@m2-community-project m2-community-project bot added Issue: ready for confirmation and removed Issue: needs update Additional information is require, waiting for response labels Apr 18, 2023
@engcom-Bravo engcom-Bravo added the Issue: needs update Additional information is require, waiting for response label Apr 18, 2023
@engcom-Bravo
Copy link
Contributor

engcom-Bravo commented Apr 18, 2023

Hi @rajesh291994,

Thanks for your update.

Please make a comment in this issue like @magento give me 2.4-develop instance it will give an Magento 2.4-develop instance to test.It will work upto some appropriate time.

Screenshot 2023-04-18 at 2 42 49 PM

it is recommended to verify the issue on Magento 2.4-develop instance as it is an upcoming 2.4.x release and have latest code base.

Thanks.

@magento-deployment-service
Copy link

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

@magento-deployment-service
Copy link

Hi @engcom-Bravo, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.

@rajesh291994 rajesh291994 reopened this Apr 18, 2023
@m2-community-project m2-community-project bot added Issue: ready for confirmation and removed Issue: needs update Additional information is require, waiting for response labels Apr 18, 2023
@engcom-Bravo engcom-Bravo added the Issue: needs update Additional information is require, waiting for response label Apr 18, 2023
@rajesh291994
Copy link
Author

@magento give me 2.4-develop instance it will give an Magento 2.4-develop instance to test. To reproduce the issue so that we can work on that

@magento-deployment-service
Copy link

Hi @rajesh291994. Thank you for your request. I'm working on Magento instance for you.

@rajesh291994 rajesh291994 reopened this Apr 18, 2023
@magento-deployment-service
Copy link

Hi @rajesh291994, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.

@m2-community-project m2-community-project bot added Issue: ready for confirmation and removed Issue: needs update Additional information is require, waiting for response labels Apr 18, 2023
@engcom-Bravo engcom-Bravo added the Issue: needs update Additional information is require, waiting for response label Apr 18, 2023
@engcom-Bravo
Copy link
Contributor

@magento give me 2.4-develop instance

@magento-deployment-service
Copy link

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

@magento-deployment-service
Copy link

@engcom-Bravo
Copy link
Contributor

engcom-Bravo commented Apr 18, 2023

@rajesh291994

Magento 2.4 develop instance has been created.please check and elaborate steps to reproduce if the issue is still reproducible.

Thanks.

@rajesh291994
Copy link
Author

@engcom-Bravo Thank you. Will setup the configuration and will update you here. Once reproduced

@engcom-Bravo
Copy link
Contributor

Hi @rajesh291994,

We have noticed that this issue has not been updated for a period of 14 Days.
Hence we assume that this issue is fixed now, so we are closing it. Please raise a fresh ticket or reopen this ticket if you need more assistance on this.

Thanks.

@rajesh291994
Copy link
Author

@engcom-Bravo The issue is has occured again. And I figured out the reproducing step. Can we reopen this issue. I can setup an issue. If I get the magento instance
@magento give me 2.4-develop instance

@magento-deployment-service
Copy link

Hi @rajesh291994. Thank you for your request. I'm working on Magento instance for you.

@magento-deployment-service
Copy link

@rajesh291994
Copy link
Author

@magento Thank you for the instance. It seems the issue is not reproducable in the given instance. Can I get the instance of 2.4.5 p1

@joshbaltzell
Copy link

We are seeing this issue on a live site now too. We are running 2.4.4 on this instance. @rajesh291994 were you able to recreate this or resolve it?

@ryan-copeland
Copy link

We are seeing the same issue in v2.4.4-p3. Configurable parent products are going out of stock when an order containing an associated simple is shipped.

Has anyone found the root cause of this issue yet?

@serzhik
Copy link
Contributor

serzhik commented Oct 18, 2024

It seems it is duplicated. Check magento/inventory#3350, please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: needs update Additional information is require, waiting for response Reported on 2.4.x Indicates original Magento version for the Issue report.
Projects
None yet
Development

No branches or pull requests

5 participants