magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.56k stars 9.32k forks source link

Import. Simple becomes Out of Stock when it should be in stock because of backorder #32339

Closed VladyslavSikailo closed 5 months ago

VladyslavSikailo commented 3 years ago

Preconditions

  1. Pure Magento 2.4.1
  2. Magento 2.4-develop

Steps to reproduce

  1. Create simple product (in stock, qty bellow 0)
  2. Copy sku of this simple
  3. Go to System->Import. Choose Entity Type: Product, Import behaviour: Add/Update
  4. Create an csv with following content (replace simple2 by your own) image
  5. Select File to import -> select created csv file.
  6. Import.

Expected result

  1. Imported simple product has Stock Status: In Stock (because it has Backorders: Allow Qty Bellow 0 so it's buyable)

Actual result

  1. Simple product has Stock Status: Out of Stock

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

m2-assistant[bot] commented 3 years ago

Hi @Dren7755. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

Please, add a comment to assign the issue: @magento I am working on this


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

duckchip commented 3 years ago

Can be reproduced on 2.3.6

duckchip commented 3 years ago

I think this is caused by the following changes: https://github.com/magento/magento2/pull/20180 https://github.com/magento/magento2/pull/24053

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions!

hostep commented 3 years ago

Not stale, somebody on Slack complained about this issue one day ago. There's even a PR open for this: https://github.com/magento/magento2/pull/32366

@sidolov, @Den4ik, @gabrieldagama: can we have somebody verify this please? So that this stalebot monstrosity stops complaining.

iphigenie commented 3 years ago

Not stale, somebody on Slack complained about this issue one day ago. There's even a PR open for this: #32366

@sidolov, @Den4ik, @gabrieldagama: can we have somebody verify this please? So that this stalebot monstrosity stops complaining.

I've had confirmed issues closed on me so not sure it'd help

m2-assistant[bot] commented 3 years ago

Hi @Den4ik. 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: :point_down:

m2-assistant[bot] commented 6 months ago

Hi @engcom-Dash. Thank you for working on this issue. Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:


engcom-Dash commented 5 months ago

Hi @VladyslavSikailo

Thanks for reporting and collaboration.

Verified the issue on magneto 2.4 dev instance but the issue is not reproducible.

Steps to reproduce

  1. Create simple product (in stock, qty bellow 0)
  2. Copy sku of this simple
  3. Go to System->Import. Choose Entity Type: Product, Import behaviour: Add/Update
  4. Create an csv with following content (replace simple2 by your own)
  5. image
  6. Select File to import -> select created csv file.
  7. Import.

Seeing Imported simple product as Stock Status: In Stock (because it has Backorders: Allow Qty Bellow 0 so it's buyable)

Please verify the attached screenshots.

Screenshot 2024-05-15 at 7 06 25 AM Screenshot 2024-05-15 at 7 08 23 AM Screenshot 2024-05-15 at 7 14 58 AM Screenshot 2024-05-15 at 7 15 26 AM
Den4ik commented 5 months ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 5 months ago

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

magento-deployment-service[bot] commented 5 months ago

Hi @Den4ik, here is your Magento Instance: https://250d7ece94a364597ab455135e8f14a3.instances-prod.magento-community.engineering Admin access: https://250d7ece94a364597ab455135e8f14a3.instances-prod.magento-community.engineering/admin_5ac2 Login: 78b6f8b4 Password: 5f61fb33d934

engcom-Dash commented 5 months ago

Hi @VladyslavSikailo

As there is no activity on this issue for a long time, we believe the issue has been resolved, hence closing this issue. Feel free to raise a new issue or reopen this if you still face it.

Thank you.