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

For configurable reservation after cancel order isn't create #1580

Closed
IvanPletnyov opened this issue Aug 22, 2018 · 3 comments
Closed

For configurable reservation after cancel order isn't create #1580

IvanPletnyov opened this issue Aug 22, 2018 · 3 comments
Assignees
Milestone

Comments

@IvanPletnyov
Copy link
Contributor

IvanPletnyov commented Aug 22, 2018

Preconditions

  1. Magento with MSI

Steps to reproduce

  1. Create configurable product with two simple products assigned to not default source and qty > 1.
  2. Place order with created configurable
  3. Cancel order

Expected result

After cancel order created reservation with ordered quantity and event_type - order_canceled

Actual result

Reservation isn't created

@maghamed
Copy link
Contributor

maghamed commented Sep 9, 2018

code review changes to PR should be done, especially regarding test coverage

@maghamed
Copy link
Contributor

should be covered with integration test

@maghamed
Copy link
Contributor

I see compensation reservation created

mysql> select * from inventory_reservation;
+----------------+----------+---------------------------------+----------+-----------------------------------------------------------------------+
| reservation_id | stock_id | sku                             | quantity | metadata                                                              |
+----------------+----------+---------------------------------+----------+-----------------------------------------------------------------------+
|              1 |        2 | Igor Configurable Product-green | -15.0000 | {"event_type":"order_placed","object_type":"order","object_id":"1"}   |
|              2 |        2 | Igor Configurable Product-green |  15.0000 | {"event_type":"order_canceled","object_type":"order","object_id":"1"} |
+----------------+----------+---------------------------------+----------+-----------------------------------------------------------------------+

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