{"action":"created","issue":{"url":"https://api.github.com/repos/GCSO2/D3S-INVENTORY/issues/119","repository_url":"https://api.github.com/repos/GCSO2/D3S-INVENTORY","labels_url":"https://api.github.com/repos/GCSO2/D3S-INVENTORY/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/GCSO2/D3S-INVENTORY/issues/119/comments","events_url":"https://api.github.com/repos/GCSO2/D3S-INVENTORY/issues/119/events","html_url":"https://github.com/GCSO2/D3S-INVENTORY/issues/119","id":153533884,"number":119,"title":"Cloud: RO Detail Screen - Add Surcharge, Taxes Section on the RO","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":[{"url":"https://api.github.com/repos/GCSO2/D3S-INVENTORY/labels/gio's%20input%20required","name":"gio's input required","color":"159818"},{"url":"https://api.github.com/repos/GCSO2/D3S-INVENTORY/labels/work%20in%20progress","name":"work in progress","color":"84b6eb"}],"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":10,"closed_issues":12,"state":"open","created_at":"2016-05-06T19:31:04Z","updated_at":"2016-05-19T11:10:45Z","due_on":"2016-06-10T04:00:00Z","closed_at":null},"comments":7,"created_at":"2016-05-06T20:40:16Z","updated_at":"2016-05-19T11:34:22Z","closed_at":null,"body":"Add section where user can enter multiple surcharges and taxes based on the branch of the mechanic that did the work.\r\n\r\nIf no mechanic is selected and only vendor was selected, then user needs to enter taxes manually.\r\n\r\nPerhaps something similar to this ?\r\n![image](https://cloud.githubusercontent.com/assets/5666297/15085559/125e1800-13a9-11e6-88e4-2c0ccaa69b55.png)\r\n"},"comment":{"url":"https://api.github.com/repos/GCSO2/D3S-INVENTORY/issues/comments/220298957","html_url":"https://github.com/GCSO2/D3S-INVENTORY/issues/119#issuecomment-220298957","issue_url":"https://api.github.com/repos/GCSO2/D3S-INVENTORY/issues/119","id":220298957,"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},"created_at":"2016-05-19T11:34:22Z","updated_at":"2016-05-19T11:34:22Z","body":"Giovani to check how taxes are applied on top of surcharges.\r\nExample\r\n```\r\nBritish Columbia:\r\n\r\nLabour $100\r\nParts  $15\r\nShop Supply $10\r\n-----------\r\nSubTotal   $125\r\n\r\nPST (7%) =  $8.75\r\nGST (5%) =  $6.25\r\n\r\n------------------\r\nTotal: $140\r\n\r\n\r\nONTARIO\r\n\r\nLabour $100\r\nParts  $15\r\nShop Supply $10\r\n-----------\r\nSubTotal   $125\r\n\r\nHST (13%) =  $16.25\r\n\r\n------------------\r\nTotal: $141.25"}}