{"action":"closed","issue":{"url":"https://api.github.com/repos/dodoas/lodo/issues/121","repository_url":"https://api.github.com/repos/dodoas/lodo","labels_url":"https://api.github.com/repos/dodoas/lodo/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/dodoas/lodo/issues/121/comments","events_url":"https://api.github.com/repos/dodoas/lodo/issues/121/events","html_url":"https://github.com/dodoas/lodo/issues/121","id":144723705,"number":121,"title":"Saving records(inbarbeidsgiveravgift) from one company to an other","user":{"login":"stoivo","id":3492040,"avatar_url":"https://avatars.githubusercontent.com/u/3492040?v=3","gravatar_id":"","url":"https://api.github.com/users/stoivo","html_url":"https://github.com/stoivo","followers_url":"https://api.github.com/users/stoivo/followers","following_url":"https://api.github.com/users/stoivo/following{/other_user}","gists_url":"https://api.github.com/users/stoivo/gists{/gist_id}","starred_url":"https://api.github.com/users/stoivo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stoivo/subscriptions","organizations_url":"https://api.github.com/users/stoivo/orgs","repos_url":"https://api.github.com/users/stoivo/repos","events_url":"https://api.github.com/users/stoivo/events{/privacy}","received_events_url":"https://api.github.com/users/stoivo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-30T21:23:57Z","updated_at":"2016-04-19T10:34:07Z","closed_at":"2016-04-19T10:34:07Z","body":"Continue #48. \r\nWe somehow are saving record from one company to another company by switching companies and saving in an old logged out session. In #48 we made it so it saved which company it was saved from, but now we need to fix it. \r\n\r\nSteps to reproduce:\r\n\r\n1. Login on companyA.\r\n2. Open `Rapporter ->  Innberettet skattetrekk og arbeidsgiveravgift` for 2016 (year does not matter).\r\n3. Save some amount for `Termin 1`.\r\n4. Keep that tap open. Switch tab and logout of companyA.\r\n5. Login on companyB.\r\n6. Go back to tab with the report and press save.\r\n7. Check in db, thoses record are saved to companyB's db. \r\n\r\nThey shouldn't.\r\n\r\n"}}