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

Product's Stock quantity not changed after Stock Source Import #267

Closed
smoskaluk opened this issue Dec 8, 2017 · 3 comments
Closed

Product's Stock quantity not changed after Stock Source Import #267

smoskaluk opened this issue Dec 8, 2017 · 3 comments

Comments

@smoskaluk
Copy link

smoskaluk commented Dec 8, 2017

Preconditions

  1. Magento with MSI module
  2. Simple product with Stock Quantity = 100 and Qty on Default Source = 100
  3. Create .csv file for import with sku of your existing Simple product and set Qty = 10 for Default Source (source_id = 1)

Steps to reproduce

  1. Goto Admin -> System -> Import
  2. Select "Import Type" = Stock Sources
  3. Select "Import Behavior" = Add/Update
  4. Click on "Choose File" button in "Select File to Import" field and navigate to your .csv import file in your system
  5. Click on "Check Data" button
  6. If you got success message "File is valid! To start import process press "Import" button" - press "Import" button
  7. Success message 'Import successfully done" appear
  8. Navigate to Admin -> Catalog -> Products and open product page of your Simple Product

Expected result

  1. Quantity in Assigned Sources field on Default Source is updated to "10" and Quantity in Stock of this product is the same

Actual result

  1. Quantity in Assigned Sources field on Default Source is updated to "10" , but Quantity in Stock of this product is "100" (old)
  2. If you click to Save your product, the Stock Qty (100) will overwrites the Qty on Default Source - and result of Import will be lost

screenshot_3

@larsroettig larsroettig added this to the MSI Part I milestone Dec 8, 2017
@amasty-pomaleyko amasty-pomaleyko self-assigned this Dec 13, 2017
@amasty-pomaleyko
Copy link
Contributor

This pull https://github.com/magento-engcom/msi/pull/269/commits solves the problem

@naydav
Copy link

naydav commented Dec 21, 2017

@smoskaluk
Need to recheck this issue after merging of #269

@naydav
Copy link

naydav commented Jan 11, 2018

Bug is fixed

@naydav naydav closed this as completed Jan 11, 2018
magento-devops-reposync-svc pushed a commit that referenced this issue Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants