{"action":"created","issue":{"url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/3713","repository_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork","labels_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/3713/labels{/name}","comments_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/3713/comments","events_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/3713/events","html_url":"https://github.com/openfoodfoundation/openfoodnetwork/issues/3713","id":430651696,"node_id":"MDU6SXNzdWU0MzA2NTE2OTY=","number":3713,"title":"[Subscriptions][Stock] You can create a subs with a product that has not enough stock","user":{"login":"RachL","id":6525576,"node_id":"MDQ6VXNlcjY1MjU1NzY=","avatar_url":"https://avatars1.githubusercontent.com/u/6525576?v=4","gravatar_id":"","url":"https://api.github.com/users/RachL","html_url":"https://github.com/RachL","followers_url":"https://api.github.com/users/RachL/followers","following_url":"https://api.github.com/users/RachL/following{/other_user}","gists_url":"https://api.github.com/users/RachL/gists{/gist_id}","starred_url":"https://api.github.com/users/RachL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RachL/subscriptions","organizations_url":"https://api.github.com/users/RachL/orgs","repos_url":"https://api.github.com/users/RachL/repos","events_url":"https://api.github.com/users/RachL/events{/privacy}","received_events_url":"https://api.github.com/users/RachL/received_events","type":"User","site_admin":false},"labels":[{"id":782472627,"node_id":"MDU6TGFiZWw3ODI0NzI2Mjc=","url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/labels/bug-s4","name":"bug-s4","color":"ffc800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2019-04-08T20:48:40Z","updated_at":"2019-06-06T19:16:04Z","closed_at":null,"author_association":"NONE","body":"## Description\nNothing prevents a producer today to create a subscription with more item than his product has in stock.\n\nAt least you should see a message, and the confirmation email towards the consumer should mention it. Otherwise you end up with a negative stock level.\n\n## Steps to Reproduce\n1. I've set up an order cycle with a product that has a stock level of 45\n2. I've set up a subscription for 50 items of this product.\n3. The buyer received a notification and a confirmation email confirming the order of 50 item\n4. The producer ended up with a negative stock level.\n\n## Animated Gif/Screenshot\n\n![image.png](https://images.zenhubusercontent.com/595e669a61b4ca3b0a737135/30f950fd-760c-4140-babf-b5e138ef3749)\n\n![image.png](https://images.zenhubusercontent.com/595e669a61b4ca3b0a737135/40fd465f-1121-4a6b-89a9-69020363141c)\n\n## Severity\nbug-s4: it's annoying, but you can use it\n\n=> I'm guessing most people use subs with \"on demand\" settings\n\n## Your Environment\n* Version used: v1.30\n* Browser name and version: Firefox 66\n* Operating System and version (desktop or mobile): Ubuntu 18.10\n* OFN Platform instance where you discovered the bug, and which version of the software they are using. Katuma staging\n"},"comment":{"url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/comments/499630404","html_url":"https://github.com/openfoodfoundation/openfoodnetwork/issues/3713#issuecomment-499630404","issue_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/3713","id":499630404,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5OTYzMDQwNA==","user":{"login":"luisramos0","id":1640378,"node_id":"MDQ6VXNlcjE2NDAzNzg=","avatar_url":"https://avatars0.githubusercontent.com/u/1640378?v=4","gravatar_id":"","url":"https://api.github.com/users/luisramos0","html_url":"https://github.com/luisramos0","followers_url":"https://api.github.com/users/luisramos0/followers","following_url":"https://api.github.com/users/luisramos0/following{/other_user}","gists_url":"https://api.github.com/users/luisramos0/gists{/gist_id}","starred_url":"https://api.github.com/users/luisramos0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luisramos0/subscriptions","organizations_url":"https://api.github.com/users/luisramos0/orgs","repos_url":"https://api.github.com/users/luisramos0/repos","events_url":"https://api.github.com/users/luisramos0/events{/privacy}","received_events_url":"https://api.github.com/users/luisramos0/received_events","type":"User","site_admin":false},"created_at":"2019-06-06T19:16:04Z","updated_at":"2019-06-06T19:16:04Z","author_association":"CONTRIBUTOR","body":"is it ok if I move these bugs to test ready for validation @RachL ? or should we keep the conversation in  Dev Ready column (as you prefer)."}}
{"actor":{"display_login":"luisramos0"}}