{"action":"closed","issue":{"url":"https://api.github.com/repos/EC-CUBE/coupon-plugin/issues/26","repository_url":"https://api.github.com/repos/EC-CUBE/coupon-plugin","labels_url":"https://api.github.com/repos/EC-CUBE/coupon-plugin/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/EC-CUBE/coupon-plugin/issues/26/comments","events_url":"https://api.github.com/repos/EC-CUBE/coupon-plugin/issues/26/events","html_url":"https://github.com/EC-CUBE/coupon-plugin/issues/26","id":155958927,"number":26,"title":"クーポンが発行枚数が残っているにも関わらず利用できない","user":{"login":"chihiro-adachi","id":8196725,"avatar_url":"https://avatars.githubusercontent.com/u/8196725?v=3","gravatar_id":"","url":"https://api.github.com/users/chihiro-adachi","html_url":"https://github.com/chihiro-adachi","followers_url":"https://api.github.com/users/chihiro-adachi/followers","following_url":"https://api.github.com/users/chihiro-adachi/following{/other_user}","gists_url":"https://api.github.com/users/chihiro-adachi/gists{/gist_id}","starred_url":"https://api.github.com/users/chihiro-adachi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chihiro-adachi/subscriptions","organizations_url":"https://api.github.com/users/chihiro-adachi/orgs","repos_url":"https://api.github.com/users/chihiro-adachi/repos","events_url":"https://api.github.com/users/chihiro-adachi/events{/privacy}","received_events_url":"https://api.github.com/users/chihiro-adachi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/EC-CUBE/coupon-plugin/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-20T13:06:49Z","updated_at":"2016-05-20T13:22:36Z","closed_at":"2016-05-20T13:22:36Z","body":"## 現象\r\nクーポンが発行枚数が残っているにも関わらず利用できない\r\n\r\n## 再現手順\r\n\r\n1. 発行枚数4枚のクーポンを作成\r\n2. ユーザAがクーポンを利用して購入完了\r\n3. ユーザBがクーポンを利用して購入完了\r\n4. ユーザCがクーポンを利用する\r\n→このクーポンはご利用いただくことができません、のエラーが表示される\r\n\r\n## 期待値\r\n\r\n以下の判定に誤りがある\r\nhttps://github.com/EC-CUBE/coupon-plugin/blob/master/Controller/CouponController.php#L477\r\n\r\nクーポン発行枚数は購入完了時に減算されるため、単純にクーポン発行枚数をチェックするだけで良いと思われる\r\n\r\n"}}
{"actor":{"display_login":"chihiro-adachi"}}