{"action":"closed","issue":{"url":"https://api.github.com/repos/RostarSynergistics/ShinyExpenseTracker/issues/29","labels_url":"https://api.github.com/repos/RostarSynergistics/ShinyExpenseTracker/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/RostarSynergistics/ShinyExpenseTracker/issues/29/comments","events_url":"https://api.github.com/repos/RostarSynergistics/ShinyExpenseTracker/issues/29/events","html_url":"https://github.com/RostarSynergistics/ShinyExpenseTracker/issues/29","id":57563627,"number":29,"title":"Attach a Photographic receipt to an Expense Item","user":{"login":"ramish94","id":6622686,"avatar_url":"https://avatars.githubusercontent.com/u/6622686?v=3","gravatar_id":"","url":"https://api.github.com/users/ramish94","html_url":"https://github.com/ramish94","followers_url":"https://api.github.com/users/ramish94/followers","following_url":"https://api.github.com/users/ramish94/following{/other_user}","gists_url":"https://api.github.com/users/ramish94/gists{/gist_id}","starred_url":"https://api.github.com/users/ramish94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramish94/subscriptions","organizations_url":"https://api.github.com/users/ramish94/orgs","repos_url":"https://api.github.com/users/ramish94/repos","events_url":"https://api.github.com/users/ramish94/events{/privacy}","received_events_url":"https://api.github.com/users/ramish94/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RostarSynergistics/ShinyExpenseTracker/labels/4%20-%20Done","name":"4 - Done","color":"009800"},{"url":"https://api.github.com/repos/RostarSynergistics/ShinyExpenseTracker/labels/receipts","name":"receipts","color":"fef2c0"},{"url":"https://api.github.com/repos/RostarSynergistics/ShinyExpenseTracker/labels/use-case","name":"use-case","color":"207de5"}],"state":"closed","locked":false,"assignee":{"login":"oleynikovo","id":6224668,"avatar_url":"https://avatars.githubusercontent.com/u/6224668?v=3","gravatar_id":"","url":"https://api.github.com/users/oleynikovo","html_url":"https://github.com/oleynikovo","followers_url":"https://api.github.com/users/oleynikovo/followers","following_url":"https://api.github.com/users/oleynikovo/following{/other_user}","gists_url":"https://api.github.com/users/oleynikovo/gists{/gist_id}","starred_url":"https://api.github.com/users/oleynikovo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleynikovo/subscriptions","organizations_url":"https://api.github.com/users/oleynikovo/orgs","repos_url":"https://api.github.com/users/oleynikovo/repos","events_url":"https://api.github.com/users/oleynikovo/events{/privacy}","received_events_url":"https://api.github.com/users/oleynikovo/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/RostarSynergistics/ShinyExpenseTracker/milestones/1","html_url":"https://github.com/RostarSynergistics/ShinyExpenseTracker/milestones/Project%20Part%204%20%E2%80%94%20Half-Way%20Prototype","labels_url":"https://api.github.com/repos/RostarSynergistics/ShinyExpenseTracker/milestones/1/labels","id":978955,"number":1,"title":"Project Part 4 — Half-Way Prototype","description":"Due at 4:00 PM.\r\n\r\nhttps://eclass.srv.ualberta.ca/mod/assign/view.php?id=1314608\r\n\r\n","creator":{"login":"adamjford","id":174829,"avatar_url":"https://avatars.githubusercontent.com/u/174829?v=3","gravatar_id":"","url":"https://api.github.com/users/adamjford","html_url":"https://github.com/adamjford","followers_url":"https://api.github.com/users/adamjford/followers","following_url":"https://api.github.com/users/adamjford/following{/other_user}","gists_url":"https://api.github.com/users/adamjford/gists{/gist_id}","starred_url":"https://api.github.com/users/adamjford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamjford/subscriptions","organizations_url":"https://api.github.com/users/adamjford/orgs","repos_url":"https://api.github.com/users/adamjford/repos","events_url":"https://api.github.com/users/adamjford/events{/privacy}","received_events_url":"https://api.github.com/users/adamjford/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":25,"state":"open","created_at":"2015-02-13T20:37:43Z","updated_at":"2015-03-16T17:12:09Z","due_on":"2015-03-16T06:00:00Z","closed_at":null},"comments":1,"created_at":"2015-02-13T06:15:12Z","updated_at":"2015-03-16T17:12:09Z","closed_at":"2015-03-16T17:12:09Z","body":"**Use Case Name:** Add an receipt photo to an expense item\r\n**Actors:** Claimant\r\n**Goal:** Add a photo of a receipt to an editable expense item\r\n**Trigger:** Claimant presses the Add Photo button in the expense item view \r\n**Preconditions:** An editable expense item exists. The claimant is viewing the expense item they wish to add a photo to.\r\n**Postconditions:** On success a photo is added to the selected expense item and the claimant is taken back to the expense item view. The photo is also less than 65536 bytes in size\r\n\r\n**Basic Flow:**\r\n1. Claimant presses the Add Photo button\r\n2. System control is passed to a camera app\r\n3. The claimant takes a photo\r\n4. The photo taken is saved to memory\r\n5. System control is passed back to the expense tracker app\r\n6. The photo taken is loaded from memory\r\n7. The photo taken is displayed\r\n8. The photo is added to the expense item\r\n9. The user is taken back to the expense item view \r\n\r\n**Exceptions:**\r\n3. Claimant cancels the camera app\r\n\t3.1) The claimant is taken back to the expense item view\r\n6. The photo is larger than 65536 bytes\r\n\t6.1) The photo is scaled down\r\n\t6.2) The scaled down photo is saved to memory and used as the receipt photo\r\n\t6.3) The old photo is deleted from memory\r\n\r\n**Covers:** US06.01.01, US06.04.01\r\n\r\n<!---\r\n@huboard:{\"order\":0.1328125,\"milestone_order\":29,\"custom_state\":\"\"}\n-->\r\n"}}