{"action":"created","issue":{"url":"https://api.github.com/repos/inbaz/ers/issues/480","labels_url":"https://api.github.com/repos/inbaz/ers/issues/480/labels{/name}","comments_url":"https://api.github.com/repos/inbaz/ers/issues/480/comments","events_url":"https://api.github.com/repos/inbaz/ers/issues/480/events","html_url":"https://github.com/inbaz/ers/issues/480","id":87515462,"number":480,"title":"email warning if there are more than X tickets of the gala show sold","user":{"login":"smadamit","id":1533081,"avatar_url":"https://avatars.githubusercontent.com/u/1533081?v=3","gravatar_id":"","url":"https://api.github.com/users/smadamit","html_url":"https://github.com/smadamit","followers_url":"https://api.github.com/users/smadamit/followers","following_url":"https://api.github.com/users/smadamit/following{/other_user}","gists_url":"https://api.github.com/users/smadamit/gists{/gist_id}","starred_url":"https://api.github.com/users/smadamit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smadamit/subscriptions","organizations_url":"https://api.github.com/users/smadamit/orgs","repos_url":"https://api.github.com/users/smadamit/repos","events_url":"https://api.github.com/users/smadamit/events{/privacy}","received_events_url":"https://api.github.com/users/smadamit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/inbaz/ers/labels/agenda","name":"agenda","color":"5319e7"},{"url":"https://api.github.com/repos/inbaz/ers/labels/must%20have","name":"must have","color":"e11d21"},{"url":"https://api.github.com/repos/inbaz/ers/labels/new%20feature","name":"new feature","color":"bfd4f2"},{"url":"https://api.github.com/repos/inbaz/ers/labels/prio1","name":"prio1","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"Bone008","id":830913,"avatar_url":"https://avatars.githubusercontent.com/u/830913?v=3","gravatar_id":"","url":"https://api.github.com/users/Bone008","html_url":"https://github.com/Bone008","followers_url":"https://api.github.com/users/Bone008/followers","following_url":"https://api.github.com/users/Bone008/following{/other_user}","gists_url":"https://api.github.com/users/Bone008/gists{/gist_id}","starred_url":"https://api.github.com/users/Bone008/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bone008/subscriptions","organizations_url":"https://api.github.com/users/Bone008/orgs","repos_url":"https://api.github.com/users/Bone008/repos","events_url":"https://api.github.com/users/Bone008/events{/privacy}","received_events_url":"https://api.github.com/users/Bone008/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/inbaz/ers/milestones/6","html_url":"https://github.com/inbaz/ers/milestones/SecondLife%20v0.3","labels_url":"https://api.github.com/repos/inbaz/ers/milestones/6/labels","id":1026294,"number":6,"title":"SecondLife v0.3","description":"it's a second life for Andi, but it's also a second going live since we will add the next needed features.\r\n- matching, profiles, etc.\r\nIt is not really a fixed date, but a continues update.","creator":{"login":"smadamit","id":1533081,"avatar_url":"https://avatars.githubusercontent.com/u/1533081?v=3","gravatar_id":"","url":"https://api.github.com/users/smadamit","html_url":"https://github.com/smadamit","followers_url":"https://api.github.com/users/smadamit/followers","following_url":"https://api.github.com/users/smadamit/following{/other_user}","gists_url":"https://api.github.com/users/smadamit/gists{/gist_id}","starred_url":"https://api.github.com/users/smadamit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smadamit/subscriptions","organizations_url":"https://api.github.com/users/smadamit/orgs","repos_url":"https://api.github.com/users/smadamit/repos","events_url":"https://api.github.com/users/smadamit/events{/privacy}","received_events_url":"https://api.github.com/users/smadamit/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":52,"state":"open","created_at":"2015-03-17T22:10:52Z","updated_at":"2015-06-29T14:43:30Z","due_on":"2015-06-29T22:00:00Z","closed_at":null},"comments":14,"created_at":"2015-06-11T22:06:24Z","updated_at":"2015-06-29T15:02:08Z","closed_at":null,"body":"We need a email warning if there are more than X tickets of the gala show sold\r\n\r\n@inbaz What do you think about this idea?"},"comment":{"url":"https://api.github.com/repos/inbaz/ers/issues/comments/116720061","html_url":"https://github.com/inbaz/ers/issues/480#issuecomment-116720061","issue_url":"https://api.github.com/repos/inbaz/ers/issues/480","id":116720061,"user":{"login":"smadamit","id":1533081,"avatar_url":"https://avatars.githubusercontent.com/u/1533081?v=3","gravatar_id":"","url":"https://api.github.com/users/smadamit","html_url":"https://github.com/smadamit","followers_url":"https://api.github.com/users/smadamit/followers","following_url":"https://api.github.com/users/smadamit/following{/other_user}","gists_url":"https://api.github.com/users/smadamit/gists{/gist_id}","starred_url":"https://api.github.com/users/smadamit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smadamit/subscriptions","organizations_url":"https://api.github.com/users/smadamit/orgs","repos_url":"https://api.github.com/users/smadamit/repos","events_url":"https://api.github.com/users/smadamit/events{/privacy}","received_events_url":"https://api.github.com/users/smadamit/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T15:02:08Z","updated_at":"2015-06-29T15:02:08Z","body":"OK, that's fine! One short question: If the counter is set to 1000 and there are 999 tickets sold. Than the next buyer can buy 5 tickets in one order. That's OK, because I consider an additional buffer for the limits.\r\n\r\nJust to confirm, I am pretty sure you implemented it like:\r\n```\r\nif($count > $limit){\r\n   set_ticket_inactive()\r\n}\r\n```\r\nand not\r\n```\r\nif($count == $limit){\r\n   set_ticket_inactive()\r\n}\r\n```"}}