{"action":"created","issue":{"url":"https://api.github.com/repos/partkeepr/PartKeepr/issues/660","repository_url":"https://api.github.com/repos/partkeepr/PartKeepr","labels_url":"https://api.github.com/repos/partkeepr/PartKeepr/issues/660/labels{/name}","comments_url":"https://api.github.com/repos/partkeepr/PartKeepr/issues/660/comments","events_url":"https://api.github.com/repos/partkeepr/PartKeepr/issues/660/events","html_url":"https://github.com/partkeepr/PartKeepr/issues/660","id":152640955,"number":660,"title":"Add Part: Using takeover all data function causes initial stock levels to be added to prev entry on save","user":{"login":"ericmoon","id":399061,"avatar_url":"https://avatars.githubusercontent.com/u/399061?v=3","gravatar_id":"","url":"https://api.github.com/users/ericmoon","html_url":"https://github.com/ericmoon","followers_url":"https://api.github.com/users/ericmoon/followers","following_url":"https://api.github.com/users/ericmoon/following{/other_user}","gists_url":"https://api.github.com/users/ericmoon/gists{/gist_id}","starred_url":"https://api.github.com/users/ericmoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericmoon/subscriptions","organizations_url":"https://api.github.com/users/ericmoon/orgs","repos_url":"https://api.github.com/users/ericmoon/repos","events_url":"https://api.github.com/users/ericmoon/events{/privacy}","received_events_url":"https://api.github.com/users/ericmoon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/partkeepr/PartKeepr/labels/Bug","name":"Bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/partkeepr/PartKeepr/milestones/11","html_url":"https://github.com/partkeepr/PartKeepr/milestones/1.0.0","labels_url":"https://api.github.com/repos/partkeepr/PartKeepr/milestones/11/labels","id":1359054,"number":11,"title":"1.0.0","description":"The final 1.0 release.","creator":{"login":"felicitus","id":162974,"avatar_url":"https://avatars.githubusercontent.com/u/162974?v=3","gravatar_id":"","url":"https://api.github.com/users/felicitus","html_url":"https://github.com/felicitus","followers_url":"https://api.github.com/users/felicitus/followers","following_url":"https://api.github.com/users/felicitus/following{/other_user}","gists_url":"https://api.github.com/users/felicitus/gists{/gist_id}","starred_url":"https://api.github.com/users/felicitus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felicitus/subscriptions","organizations_url":"https://api.github.com/users/felicitus/orgs","repos_url":"https://api.github.com/users/felicitus/repos","events_url":"https://api.github.com/users/felicitus/events{/privacy}","received_events_url":"https://api.github.com/users/felicitus/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":21,"state":"open","created_at":"2015-10-16T09:21:28Z","updated_at":"2016-05-14T13:26:23Z","due_on":"2016-04-29T22:00:00Z","closed_at":null},"comments":6,"created_at":"2016-05-02T20:46:01Z","updated_at":"2016-05-14T13:31:01Z","closed_at":null,"body":"When the 'Takeover all data' is checked on a Part Add, the initial stock level entry is added the the previous part stock level.  \r\n\r\nFor example, Enter \"Part A\" with a Initial stock level of 11, then check the takeover all data and save Part A.  Change Part A to \"Part B\" and change nothing else, when you save part B, initial stock level will be saved as 22,  Part C would be 33, and so on.  Changing the value in the Initial stock level only changes the amount added to the previous stock level.\r\n\r\nProblem reproduced on demo.partkeepr.org\r\n\r\nbrowser: chrome\r\nPK version : GIT Dev version \r\nPHP version : 5.6.20-1\r\nSeverOS : debian stretch openvz on  2.6.32-042stab111.12 kernel.\r\nServer version: Apache/2.4.18 (Debian)\r\nmysql version: mysql  Ver 14.14 Distrib 5.6.30\r\n"},"comment":{"url":"https://api.github.com/repos/partkeepr/PartKeepr/issues/comments/219220524","html_url":"https://github.com/partkeepr/PartKeepr/issues/660#issuecomment-219220524","issue_url":"https://api.github.com/repos/partkeepr/PartKeepr/issues/660","id":219220524,"user":{"login":"felicitus","id":162974,"avatar_url":"https://avatars.githubusercontent.com/u/162974?v=3","gravatar_id":"","url":"https://api.github.com/users/felicitus","html_url":"https://github.com/felicitus","followers_url":"https://api.github.com/users/felicitus/followers","following_url":"https://api.github.com/users/felicitus/following{/other_user}","gists_url":"https://api.github.com/users/felicitus/gists{/gist_id}","starred_url":"https://api.github.com/users/felicitus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felicitus/subscriptions","organizations_url":"https://api.github.com/users/felicitus/orgs","repos_url":"https://api.github.com/users/felicitus/repos","events_url":"https://api.github.com/users/felicitus/events{/privacy}","received_events_url":"https://api.github.com/users/felicitus/received_events","type":"User","site_admin":false},"created_at":"2016-05-14T13:31:01Z","updated_at":"2016-05-14T13:31:01Z","body":"Can you give more verbose instructions to reproduce, like if you have clicked `Takeover all data` or not?"}}