{"action":"created","issue":{"url":"https://api.github.com/repos/specify/specify7/issues/138","labels_url":"https://api.github.com/repos/specify/specify7/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/specify/specify7/issues/138/comments","events_url":"https://api.github.com/repos/specify/specify7/issues/138/events","html_url":"https://github.com/specify/specify7/issues/138","id":91903018,"number":138,"title":"specify 7 allows saving interaction preps with quantities greater than are available.","user":{"login":"timo11","id":2915306,"avatar_url":"https://avatars.githubusercontent.com/u/2915306?v=3","gravatar_id":"","url":"https://api.github.com/users/timo11","html_url":"https://github.com/timo11","followers_url":"https://api.github.com/users/timo11/followers","following_url":"https://api.github.com/users/timo11/following{/other_user}","gists_url":"https://api.github.com/users/timo11/gists{/gist_id}","starred_url":"https://api.github.com/users/timo11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timo11/subscriptions","organizations_url":"https://api.github.com/users/timo11/orgs","repos_url":"https://api.github.com/users/timo11/repos","events_url":"https://api.github.com/users/timo11/events{/privacy}","received_events_url":"https://api.github.com/users/timo11/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/specify/specify7/labels/pri:high","name":"pri:high","color":"fbca04"},{"url":"https://api.github.com/repos/specify/specify7/labels/type:bug","name":"type:bug","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-29T20:33:17Z","updated_at":"2015-06-30T21:07:46Z","closed_at":"2015-06-30T21:03:47Z","body":"For example If you add a prep to a loan, and w/o saving the loan, click 'add' again, choose a record set containing the prep, the available quantity in the prepselect dialog won't take the unsaved loan prep into account and more items than are available can be loaned."},"comment":{"url":"https://api.github.com/repos/specify/specify7/issues/comments/117342118","html_url":"https://github.com/specify/specify7/issues/138#issuecomment-117342118","issue_url":"https://api.github.com/repos/specify/specify7/issues/138","id":117342118,"user":{"login":"timo11","id":2915306,"avatar_url":"https://avatars.githubusercontent.com/u/2915306?v=3","gravatar_id":"","url":"https://api.github.com/users/timo11","html_url":"https://github.com/timo11","followers_url":"https://api.github.com/users/timo11/followers","following_url":"https://api.github.com/users/timo11/following{/other_user}","gists_url":"https://api.github.com/users/timo11/gists{/gist_id}","starred_url":"https://api.github.com/users/timo11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timo11/subscriptions","organizations_url":"https://api.github.com/users/timo11/orgs","repos_url":"https://api.github.com/users/timo11/repos","events_url":"https://api.github.com/users/timo11/events{/privacy}","received_events_url":"https://api.github.com/users/timo11/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T21:07:46Z","updated_at":"2015-06-30T21:07:46Z","body":"You should no longer be able to add amounts that are invalid within the context of a single loan, even if preps are duplicated. If other users do stuff to change the availability of preps in a loan while it is being edited, the backend business rules (#139) will prevent invalid amounts from being saved"}}