{"action":"created","issue":{"url":"https://api.github.com/repos/foodcoops/foodsoft/issues/415","repository_url":"https://api.github.com/repos/foodcoops/foodsoft","labels_url":"https://api.github.com/repos/foodcoops/foodsoft/issues/415/labels{/name}","comments_url":"https://api.github.com/repos/foodcoops/foodsoft/issues/415/comments","events_url":"https://api.github.com/repos/foodcoops/foodsoft/issues/415/events","html_url":"https://github.com/foodcoops/foodsoft/issues/415","id":138790856,"number":415,"title":"Wrong calculation of article price with deposit","user":{"login":"paroga","id":337009,"avatar_url":"https://avatars.githubusercontent.com/u/337009?v=3","gravatar_id":"","url":"https://api.github.com/users/paroga","html_url":"https://github.com/paroga","followers_url":"https://api.github.com/users/paroga/followers","following_url":"https://api.github.com/users/paroga/following{/other_user}","gists_url":"https://api.github.com/users/paroga/gists{/gist_id}","starred_url":"https://api.github.com/users/paroga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paroga/subscriptions","organizations_url":"https://api.github.com/users/paroga/orgs","repos_url":"https://api.github.com/users/paroga/repos","events_url":"https://api.github.com/users/paroga/events{/privacy}","received_events_url":"https://api.github.com/users/paroga/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/foodcoops/foodsoft/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-06T13:27:15Z","updated_at":"2016-03-09T08:36:00Z","closed_at":null,"body":"At least for Austrian financial law the calculation of the article price is wrong. At the moment VAT for food is 10%, while the VAT for non-food is 20%. E.g. a bottle is not a food and therefore the 20% apply.\r\n\r\nATM foodsoft calculates the price as `(nett_price + deposit) * (1+VAT)`.\r\nIMHO the correct calculation should be `nett_price * (1+VAT_article) + deposit * (1+VAT_deposit)`.\r\nSince two VAT per article seam strange it would be better to just do not apply the VAT to the deposit and calculate the price as `nett_price * (1+VAT) + deposit`."},"comment":{"url":"https://api.github.com/repos/foodcoops/foodsoft/issues/comments/194183612","html_url":"https://github.com/foodcoops/foodsoft/issues/415#issuecomment-194183612","issue_url":"https://api.github.com/repos/foodcoops/foodsoft/issues/415","id":194183612,"user":{"login":"digitalscanner","id":2979462,"avatar_url":"https://avatars.githubusercontent.com/u/2979462?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalscanner","html_url":"https://github.com/digitalscanner","followers_url":"https://api.github.com/users/digitalscanner/followers","following_url":"https://api.github.com/users/digitalscanner/following{/other_user}","gists_url":"https://api.github.com/users/digitalscanner/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalscanner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalscanner/subscriptions","organizations_url":"https://api.github.com/users/digitalscanner/orgs","repos_url":"https://api.github.com/users/digitalscanner/repos","events_url":"https://api.github.com/users/digitalscanner/events{/privacy}","received_events_url":"https://api.github.com/users/digitalscanner/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T08:36:00Z","updated_at":"2016-03-09T08:36:00Z","body":"thanx a lot for the hard work the last days\r\ni think to clear the deposit question about the VAT is a necessary thing. for me it´s a good way to do the calculation in this way \"_`nett_price * (1+VAT) + deposit`_\" (in our foodcoop we use only one middle price for the different deposits cause it´s much more easier for the people to deal with it)\r\nthe question of the depositreturn is from my point not that urgent thing (we will do this stuff in our foodcoop offline on the private calculationsheets)"}}