payload: {"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/25696","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/25696/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/25696/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/25696/events","html_url":"https://github.com/magento/magento2/issues/25696","id":527026583,"node_id":"MDU6SXNzdWU1MjcwMjY1ODM=","number":25696,"title":"Inventory Reservation not taken into account when setting Product out of Stock","user":{"login":"stkrelax","id":48922246,"node_id":"MDQ6VXNlcjQ4OTIyMjQ2","avatar_url":"https://avatars0.githubusercontent.com/u/48922246?v=4","gravatar_id":"","url":"https://api.github.com/users/stkrelax","html_url":"https://github.com/stkrelax","followers_url":"https://api.github.com/users/stkrelax/followers","following_url":"https://api.github.com/users/stkrelax/following{/other_user}","gists_url":"https://api.github.com/users/stkrelax/gists{/gist_id}","starred_url":"https://api.github.com/users/stkrelax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stkrelax/subscriptions","organizations_url":"https://api.github.com/users/stkrelax/orgs","repos_url":"https://api.github.com/users/stkrelax/repos","events_url":"https://api.github.com/users/stkrelax/events{/privacy}","received_events_url":"https://api.github.com/users/stkrelax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-11-22T07:06:19Z","updated_at":"2019-11-22T07:06:21Z","closed_at":null,"author_association":"NONE","body":"### Preconditions (*)\r\n\r\n1. Magento 2.3.2\r\n2. MSI with default Stock only ( default stock only is not a must but MSI is)\r\n\r\n### Steps to reproduce (*)\r\n1. set up one Product with qty 1 salable \r\n2. complete an order buying the product (a new entry in inventory_reservation was made)\r\n3. post /V1/inventory/source-items set Product to qty 0 and status 0 (simulating the client updating the stock because it was purchased by you)\r\n4. in admin or api try to ship the order.\r\n\r\n### Expected result (*)\r\n1. the order gets shipped\r\n\r\n### Actual result (*)\r\n1. Exception \"Not all of your products are available in the requested quantity.\"\r\nThe Reason therefor is that normally without the clients update of the product the qty of the product would have been 1 and the shipping would have set it to 0. \r\nNow that the product has qty 0, magento is unable to substract the reservations. \r\n\r\n### Suggestion (*)\r\nWhen updating a products qty the reservations should be included. So in this case the aty 0 would have become qty 1.\r\n\r\n### Related \r\nhttps://github.com/magento/inventory/issues/2073\r\nhttps://github.com/magento/magento2/issues/21646\r\nhttps://github.com/magento/inventory/issues/2725\r\n"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/557417879","html_url":"https://github.com/magento/magento2/issues/25696#issuecomment-557417879","issue_url":"https://api.github.com/repos/magento/magento2/issues/25696","id":557417879,"node_id":"MDEyOklzc3VlQ29tbWVudDU1NzQxNzg3OQ==","user":{"login":"m2-assistant[bot]","id":48600411,"node_id":"MDM6Qm90NDg2MDA0MTE=","avatar_url":"https://avatars0.githubusercontent.com/in/27048?v=4","gravatar_id":"","url":"https://api.github.com/users/m2-assistant%5Bbot%5D","html_url":"https://github.com/apps/m2-assistant","followers_url":"https://api.github.com/users/m2-assistant%5Bbot%5D/followers","following_url":"https://api.github.com/users/m2-assistant%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/m2-assistant%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/m2-assistant%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m2-assistant%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/m2-assistant%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/m2-assistant%5Bbot%5D/repos","events_url":"https://api.github.com/users/m2-assistant%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/m2-assistant%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2019-11-22T07:06:21Z","updated_at":"2019-11-22T07:06:21Z","author_association":"NONE","body":"Hi @stkrelax. Thank you for your report. \nTo help us process this issue please make sure that you provided the following information:\n- [ ] Summary of the issue\n- [ ] Information on your environment\n- [ ] Steps to reproduce\n- [ ] Expected and actual results\n\nPlease 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: \n\n`@magento give me 2.3-develop instance` - upcoming 2.3.x release\n\nFor more details, please, review the [Magento Contributor Assistant](https://devdocs.magento.com/guides/v2.3/contributor-guide/contributing.html#contributor-assist) documentation.\n\n@stkrelax do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?\n- [ ] yes\n- [ ] no\n\n---\n-  Join [Magento Community Engineering Slack](https://opensource.magento.com/slack) and ask your questions in [#github](https://magentocommeng.slack.com/messages/C7KB93M32) channel."}}
other: {"actor":{"display_login":"m2-assistant"}}