{"action":"opened","issue":{"url":"https://api.github.com/repos/GCSO2/D3S-INVENTORY/issues/133","repository_url":"https://api.github.com/repos/GCSO2/D3S-INVENTORY","labels_url":"https://api.github.com/repos/GCSO2/D3S-INVENTORY/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/GCSO2/D3S-INVENTORY/issues/133/comments","events_url":"https://api.github.com/repos/GCSO2/D3S-INVENTORY/issues/133/events","html_url":"https://github.com/GCSO2/D3S-INVENTORY/issues/133","id":155261845,"number":133,"title":"Cloud: RO Statuses : To be discussed with Team","user":{"login":"giovanicani","id":5666297,"avatar_url":"https://avatars.githubusercontent.com/u/5666297?v=3","gravatar_id":"","url":"https://api.github.com/users/giovanicani","html_url":"https://github.com/giovanicani","followers_url":"https://api.github.com/users/giovanicani/followers","following_url":"https://api.github.com/users/giovanicani/following{/other_user}","gists_url":"https://api.github.com/users/giovanicani/gists{/gist_id}","starred_url":"https://api.github.com/users/giovanicani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giovanicani/subscriptions","organizations_url":"https://api.github.com/users/giovanicani/orgs","repos_url":"https://api.github.com/users/giovanicani/repos","events_url":"https://api.github.com/users/giovanicani/events{/privacy}","received_events_url":"https://api.github.com/users/giovanicani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tufailzafar","id":5826517,"avatar_url":"https://avatars.githubusercontent.com/u/5826517?v=3","gravatar_id":"","url":"https://api.github.com/users/tufailzafar","html_url":"https://github.com/tufailzafar","followers_url":"https://api.github.com/users/tufailzafar/followers","following_url":"https://api.github.com/users/tufailzafar/following{/other_user}","gists_url":"https://api.github.com/users/tufailzafar/gists{/gist_id}","starred_url":"https://api.github.com/users/tufailzafar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tufailzafar/subscriptions","organizations_url":"https://api.github.com/users/tufailzafar/orgs","repos_url":"https://api.github.com/users/tufailzafar/repos","events_url":"https://api.github.com/users/tufailzafar/events{/privacy}","received_events_url":"https://api.github.com/users/tufailzafar/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/GCSO2/D3S-INVENTORY/milestones/2","html_url":"https://github.com/GCSO2/D3S-INVENTORY/milestones/RO%20Detail%20Screen%20-%20Cloud","labels_url":"https://api.github.com/repos/GCSO2/D3S-INVENTORY/milestones/2/labels","id":1752302,"number":2,"title":"RO Detail Screen - Cloud","description":"# To be started after RO Link change has been completed and delivered to production\r\n\r\n- Allow create, edit and save and RO.\r\n- Add check box after labour & parts called charge. This field needs to be added on the labour and parts table (rep_work_order_labour(_wv), rep_work_order_parts(_wv) name it charge_flag default flagged)\r\n- When assigning to a mechanic or vendor add option to send email to vendor, mechanic once assignment is done.\r\n- Add tab with grid that will show history of labour / part for unit selected on the header (RO#, Date, Labour, Mechanic, Part). Labour will repeat, if multiple parts, but that is OK.\r\n- Allow add, update, remove labour lines;\r\n- Allow add, update, remove parts\r\n- Warranty indicator;\r\n- Safety Certificate update\r\n- Mileage / Reefer Readings update\r\n- Customer and Customer Invoice to Update\r\n- Allow Split RO (-B, -C, etc...)\r\n- Validate that unit exists on the database, along with license plate. If not need to warn user.\r\n- Complete RO. When completing, update inventory, calculate PM, update readings and safety on their respective 2 tables, \r\n- Approve RO. No changes after approving RO. After approving RO, revalidate functions:  inventory update (if necessary), (re) calculate PM, update readings and safety on their respective 2 tables (if necessary). New: calculate taxes, shop supply, revalidate customer rate based on the job type and part charge. **Note: (1) Only certain users can approve RO, (2) Users that approve can also un-approve an RO**\r\n\r\n- If approved successfully, then ... call @gchan-trailcon procedure that will create a completed & Approved WO.\r\n- After approved all fields are locked down.","creator":{"login":"giovanicani","id":5666297,"avatar_url":"https://avatars.githubusercontent.com/u/5666297?v=3","gravatar_id":"","url":"https://api.github.com/users/giovanicani","html_url":"https://github.com/giovanicani","followers_url":"https://api.github.com/users/giovanicani/followers","following_url":"https://api.github.com/users/giovanicani/following{/other_user}","gists_url":"https://api.github.com/users/giovanicani/gists{/gist_id}","starred_url":"https://api.github.com/users/giovanicani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giovanicani/subscriptions","organizations_url":"https://api.github.com/users/giovanicani/orgs","repos_url":"https://api.github.com/users/giovanicani/repos","events_url":"https://api.github.com/users/giovanicani/events{/privacy}","received_events_url":"https://api.github.com/users/giovanicani/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":9,"state":"open","created_at":"2016-05-06T19:31:04Z","updated_at":"2016-05-17T13:39:01Z","due_on":"2016-06-10T04:00:00Z","closed_at":null},"comments":0,"created_at":"2016-05-17T13:39:01Z","updated_at":"2016-05-17T13:39:01Z","closed_at":null,"body":"@d3sqa \r\nHi Rabia and Team,\r\n\r\nToday we touched the topic about status, since we are now creating the RO on the cloud. Here is what I believe we could use as status (building on what has already been done). Please feel free to add your comments:\r\n\r\n**INITIAL**\r\nThis is when the user is creating a RO on the CLOUD. RO is not saved yet;\r\n\r\n**UN-ASSIGNED**\r\nWhen created from QUOTE or created from RO Detail Screen, however there is no mechanic (use_id_assigned_to) or vendor/sublet assigned (vend_id) AND void date is null;\r\n\r\n**ASSIGNED**\r\nWhen created from QUOTE or created from RO Detail Screen, and there is a mechanic (use_id_assigned_to) or vendor/sublet assigned (vend_id) AND void date is null;\r\n\r\n**WORK IN PROGRESS**\r\nAs is today.\r\n\r\n**HOLD**\r\nAs is today.\r\n\r\n**COMPLETED**\r\nWhen Completed Date is not null AND void date is null. Note that an RO can be completed from the tablet or through Cloud.\r\n\r\n**APPROVED**\r\nWhen Approved Date is not null AND void date is null. Approval can only happen on the cloud. After approved, no changes are allowed\r\n\r\n**READY FOR BILLING**\r\nWhen ready_billing_date is not null. Only to be done on Cloud. See #120. \r\n\r\n**VOID**\r\nWhen void date is not null\r\n\r\n"}}