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

Wrong qty calculation on order with configurable after partial ship, partial invoice #1913

Open
IvanPletnyov opened this issue Nov 19, 2018 · 5 comments

Comments

@IvanPletnyov
Copy link
Contributor

Preconditions

  1. Magento 2 with MSI
  2. Create three custom sources (source 1, source 2 and source 3)
  3. Create custom stock with assigned created sources and assigned "main website".
    Priority for sources:
    1. Source 3
    2. Source 1
    3. Source 2
  4. Create configurable product with two options (black and white) with assigned created sources and qty = 100.

Steps to reproduce

  1. Create order with configurable with qty = 10
  2. ship 3 (from source 3)
  3. invoice 5
  4. ship 2 (from source 1)
  5. Credit memo 5
  6. Ship 5 (from source 3)
  7. invoice 5
  8. Credit memo 5

Expected result

  1. Quantity per source on ordered option on all sources equal to 100

Actual result

  1. Quantity per source on Source 2 = 98; Source 3 = 92.

Additional info

  1. Stock
    image

  2. Order
    image

  3. Products grid
    image

  4. Reservation
    image

@maghamed
Copy link
Contributor

Please check this case when the full invoice created in the first step.

Because for me the issue looks like a bug with order status, but not as a problem with MSI computation

@IvanPletnyov
Copy link
Contributor Author

@maghamed I've checked this case with full invoice, bug reproduce, but we have other results on "quantity per source"
image

@maghamed
Copy link
Contributor

If we apply next steps:

  • order for 10 items
  • full invoice (10 items)
  • ship 3
  • ship 2
  • credit memo 5 items

The order should appear in a complete status after last credit memo operation without possibility to ship any more , so that it’s an issue with order status , but not with calculations

@IvanPletnyov
Copy link
Contributor Author

@maghamed I've created issue on Jira https://jira.corp.magento.com/browse/MAGETWO-96456

@smoskaluk
Copy link

smoskaluk commented Jun 14, 2019

Hi, @maghamed !
If we apply next steps:

order for 10 items
invoice 5 items
ship 5 items
credit memo 5 items
after such steps - order has status processing, but it is not possible to make shipments anymore. Do you think it's correct behavior?

image

@sidolov sidolov added the Bug label Feb 6, 2020
@sidolov sidolov removed this from the Bugfixing milestone Feb 10, 2020
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

6 participants