{"action":"created","issue":{"url":"https://api.github.com/repos/frappe/erpnext/issues/13363","repository_url":"https://api.github.com/repos/frappe/erpnext","labels_url":"https://api.github.com/repos/frappe/erpnext/issues/13363/labels{/name}","comments_url":"https://api.github.com/repos/frappe/erpnext/issues/13363/comments","events_url":"https://api.github.com/repos/frappe/erpnext/issues/13363/events","html_url":"https://github.com/frappe/erpnext/pull/13363","id":307340630,"number":13363,"title":"Timer in Timesheets!","user":{"login":"shreyashah115","id":17617465,"avatar_url":"https://avatars3.githubusercontent.com/u/17617465?v=4","gravatar_id":"","url":"https://api.github.com/users/shreyashah115","html_url":"https://github.com/shreyashah115","followers_url":"https://api.github.com/users/shreyashah115/followers","following_url":"https://api.github.com/users/shreyashah115/following{/other_user}","gists_url":"https://api.github.com/users/shreyashah115/gists{/gist_id}","starred_url":"https://api.github.com/users/shreyashah115/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shreyashah115/subscriptions","organizations_url":"https://api.github.com/users/shreyashah115/orgs","repos_url":"https://api.github.com/users/shreyashah115/repos","events_url":"https://api.github.com/users/shreyashah115/events{/privacy}","received_events_url":"https://api.github.com/users/shreyashah115/received_events","type":"User","site_admin":false},"labels":[{"id":873090786,"url":"https://api.github.com/repos/frappe/erpnext/labels/version-11","name":"version-11","color":"c9e6ff","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-21T17:16:24Z","updated_at":"2018-03-22T07:28:07Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/frappe/erpnext/pulls/13363","html_url":"https://github.com/frappe/erpnext/pull/13363","diff_url":"https://github.com/frappe/erpnext/pull/13363.diff","patch_url":"https://github.com/frappe/erpnext/pull/13363.patch"},"body":"<img width=\"596\" alt=\"screen shot 2018-03-21 at 10 25 01 pm\" src=\"https://user-images.githubusercontent.com/17617465/37724513-f410d99a-2d56-11e8-92fa-2a53be42f9e2.png\">\r\n\r\n![timer-final](https://user-images.githubusercontent.com/17617465/37724464-dc80c0e2-2d56-11e8-9f62-2e43d2a86891.gif)\r\n\r\nSummary:\r\n- On clicking, 'Start Timer', a dialog pops up and starts the timer for already present activity for which checkbox `completed` is unchecked.\r\n- If no activities are present, fill up the activity, expected hours or project in the dialog itself, on clicking 'Start', a new row is added into the Timesheet Details child table and timer begins.\r\n- On clicking, 'Complete', the hours and to_time fields are updated for that particular activity.\r\n- At any point of time, if the dialog is closed without completing the activity, on opening the dialog again, the timer resumes by calculating how much time has elapsed since `from_time` of the activity.\r\n- If any activities are already present in the Timesheet with `completed` unchecked, clicking on 'Resume Timer' fetches the activity and starts its timer.\r\n- If the time exceeds the `expected_hours`, an alert box appears.\r\n\r\n<img width=\"621\" alt=\"screen shot 2018-03-21 at 10 34 28 pm\" src=\"https://user-images.githubusercontent.com/17617465/37725047-1082cc2c-2d58-11e8-9199-c0f4e8a12e08.png\">\r\nThanks @pratu16x7 and @netchampfaris for helping out with the UI! "},"comment":{"url":"https://api.github.com/repos/frappe/erpnext/issues/comments/375203676","html_url":"https://github.com/frappe/erpnext/pull/13363#issuecomment-375203676","issue_url":"https://api.github.com/repos/frappe/erpnext/issues/13363","id":375203676,"user":{"login":"KanchanChauhan","id":16913064,"avatar_url":"https://avatars3.githubusercontent.com/u/16913064?v=4","gravatar_id":"","url":"https://api.github.com/users/KanchanChauhan","html_url":"https://github.com/KanchanChauhan","followers_url":"https://api.github.com/users/KanchanChauhan/followers","following_url":"https://api.github.com/users/KanchanChauhan/following{/other_user}","gists_url":"https://api.github.com/users/KanchanChauhan/gists{/gist_id}","starred_url":"https://api.github.com/users/KanchanChauhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KanchanChauhan/subscriptions","organizations_url":"https://api.github.com/users/KanchanChauhan/orgs","repos_url":"https://api.github.com/users/KanchanChauhan/repos","events_url":"https://api.github.com/users/KanchanChauhan/events{/privacy}","received_events_url":"https://api.github.com/users/KanchanChauhan/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T07:28:07Z","updated_at":"2018-03-22T07:28:07Z","author_association":"CONTRIBUTOR","body":"It will be good idea to keep it minimized so that you can continue with your other work but still look at the timer."}}
{"actor":{"display_login":"KanchanChauhan"}}