{"action":"created","issue":{"url":"https://api.github.com/repos/jamiemax/optimisebills/issues/25","repository_url":"https://api.github.com/repos/jamiemax/optimisebills","labels_url":"https://api.github.com/repos/jamiemax/optimisebills/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/jamiemax/optimisebills/issues/25/comments","events_url":"https://api.github.com/repos/jamiemax/optimisebills/issues/25/events","html_url":"https://github.com/jamiemax/optimisebills/issues/25","id":166629902,"number":25,"title":"'load' button on CM2 causes 'data invalid' for lots of clients","user":{"login":"iddmaxwell","id":12531960,"avatar_url":"https://avatars.githubusercontent.com/u/12531960?v=3","gravatar_id":"","url":"https://api.github.com/users/iddmaxwell","html_url":"https://github.com/iddmaxwell","followers_url":"https://api.github.com/users/iddmaxwell/followers","following_url":"https://api.github.com/users/iddmaxwell/following{/other_user}","gists_url":"https://api.github.com/users/iddmaxwell/gists{/gist_id}","starred_url":"https://api.github.com/users/iddmaxwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iddmaxwell/subscriptions","organizations_url":"https://api.github.com/users/iddmaxwell/orgs","repos_url":"https://api.github.com/users/iddmaxwell/repos","events_url":"https://api.github.com/users/iddmaxwell/events{/privacy}","received_events_url":"https://api.github.com/users/iddmaxwell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jamiemax/optimisebills/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/jamiemax/optimisebills/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"Will-Newton","id":12527418,"avatar_url":"https://avatars.githubusercontent.com/u/12527418?v=3","gravatar_id":"","url":"https://api.github.com/users/Will-Newton","html_url":"https://github.com/Will-Newton","followers_url":"https://api.github.com/users/Will-Newton/followers","following_url":"https://api.github.com/users/Will-Newton/following{/other_user}","gists_url":"https://api.github.com/users/Will-Newton/gists{/gist_id}","starred_url":"https://api.github.com/users/Will-Newton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Will-Newton/subscriptions","organizations_url":"https://api.github.com/users/Will-Newton/orgs","repos_url":"https://api.github.com/users/Will-Newton/repos","events_url":"https://api.github.com/users/Will-Newton/events{/privacy}","received_events_url":"https://api.github.com/users/Will-Newton/received_events","type":"User","site_admin":false},"assignees":[{"login":"Will-Newton","id":12527418,"avatar_url":"https://avatars.githubusercontent.com/u/12527418?v=3","gravatar_id":"","url":"https://api.github.com/users/Will-Newton","html_url":"https://github.com/Will-Newton","followers_url":"https://api.github.com/users/Will-Newton/followers","following_url":"https://api.github.com/users/Will-Newton/following{/other_user}","gists_url":"https://api.github.com/users/Will-Newton/gists{/gist_id}","starred_url":"https://api.github.com/users/Will-Newton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Will-Newton/subscriptions","organizations_url":"https://api.github.com/users/Will-Newton/orgs","repos_url":"https://api.github.com/users/Will-Newton/repos","events_url":"https://api.github.com/users/Will-Newton/events{/privacy}","received_events_url":"https://api.github.com/users/Will-Newton/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-07-20T16:53:12Z","updated_at":"2016-09-30T07:16:20Z","closed_at":null,"body":"Examples are: \r\nRob Binns.\r\nfor some reason we have clients whose tariff does not have a valid UK Power supplier id. maybe because it's blank, or because it was copied from another tariff manually.\r\nKeith Fling\r\non GB Energy premium.  This has a UK Power id on the tariff record: 3802.  So looks ok.\r\nWhere is the UK Power supplier id held? I can't see it on the energy record. Is it only on the tariff record? \r\nI think this is why lots of the clients generate 'data invalid' on clicking the 'load' button. But there could be other reasons.\r\nWe need these clients' records fixing.  \r\ncan we have a script that goes through current clients one by one, tries to generate a  UK POwer link for them, and fixes them if it doesn't work? \r\nThe script will need to trap the various reasons for failure and address each one. \r\nSo invalid UK POwer supplier id: \r\nfind valid list of UK POwer supplier ids from the API\r\nmatch supplier name against the list \r\nupdate the tariff table with the valid UK POwer supplier id\r\nrecheck the UK Power link load process to make sure it works this time.\r\nstore the result in UK Power link 2 (to avoid overwriting in case the script doesn't work). \r\nother reasons for error\r\n**payment method not set correctly:** \r\nchoose a valid payment method from the list available and use that.  Default to Direct Debit if there is no other.  \r\n\r\nI think this is now a bug.  I cannot find a client that the button works for!  Something must have changed at the UK Power end I guess.  "},"comment":{"url":"https://api.github.com/repos/jamiemax/optimisebills/issues/comments/250676422","html_url":"https://github.com/jamiemax/optimisebills/issues/25#issuecomment-250676422","issue_url":"https://api.github.com/repos/jamiemax/optimisebills/issues/25","id":250676422,"user":{"login":"Will-Newton","id":12527418,"avatar_url":"https://avatars.githubusercontent.com/u/12527418?v=3","gravatar_id":"","url":"https://api.github.com/users/Will-Newton","html_url":"https://github.com/Will-Newton","followers_url":"https://api.github.com/users/Will-Newton/followers","following_url":"https://api.github.com/users/Will-Newton/following{/other_user}","gists_url":"https://api.github.com/users/Will-Newton/gists{/gist_id}","starred_url":"https://api.github.com/users/Will-Newton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Will-Newton/subscriptions","organizations_url":"https://api.github.com/users/Will-Newton/orgs","repos_url":"https://api.github.com/users/Will-Newton/repos","events_url":"https://api.github.com/users/Will-Newton/events{/privacy}","received_events_url":"https://api.github.com/users/Will-Newton/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T07:16:20Z","updated_at":"2016-09-30T07:16:20Z","body":"We are creating it dynamically on request. There's no way of using this method any more."}}
{"actor":{"display_login":"Will-Newton"}}