{"action":"created","issue":{"url":"https://api.github.com/repos/foodcoops/foodsoft/issues/382","repository_url":"https://api.github.com/repos/foodcoops/foodsoft","labels_url":"https://api.github.com/repos/foodcoops/foodsoft/issues/382/labels{/name}","comments_url":"https://api.github.com/repos/foodcoops/foodsoft/issues/382/comments","events_url":"https://api.github.com/repos/foodcoops/foodsoft/issues/382/events","html_url":"https://github.com/foodcoops/foodsoft/issues/382","id":103130539,"node_id":"MDU6SXNzdWUxMDMxMzA1Mzk=","number":382,"title":"Calculate Foodcoop credit balance","user":{"login":"Tamriel","id":5037153,"node_id":"MDQ6VXNlcjUwMzcxNTM=","avatar_url":"https://avatars2.githubusercontent.com/u/5037153?v=4","gravatar_id":"","url":"https://api.github.com/users/Tamriel","html_url":"https://github.com/Tamriel","followers_url":"https://api.github.com/users/Tamriel/followers","following_url":"https://api.github.com/users/Tamriel/following{/other_user}","gists_url":"https://api.github.com/users/Tamriel/gists{/gist_id}","starred_url":"https://api.github.com/users/Tamriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tamriel/subscriptions","organizations_url":"https://api.github.com/users/Tamriel/orgs","repos_url":"https://api.github.com/users/Tamriel/repos","events_url":"https://api.github.com/users/Tamriel/events{/privacy}","received_events_url":"https://api.github.com/users/Tamriel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-08-25T22:26:24Z","updated_at":"2018-11-29T19:06:31Z","closed_at":null,"author_association":"NONE","body":"It would be nice, if in the finance overview screen the Foodcoop's credit balance would be displayed.\nEach time an order with a price markup / Foodcoop margin is cleared, the earned money shall be added to the Foodcoop's account credit balance.\nI think it should be a normal account, because then there is a history and one can remove money from the account.\n"},"comment":{"url":"https://api.github.com/repos/foodcoops/foodsoft/issues/comments/442954845","html_url":"https://github.com/foodcoops/foodsoft/issues/382#issuecomment-442954845","issue_url":"https://api.github.com/repos/foodcoops/foodsoft/issues/382","id":442954845,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Mjk1NDg0NQ==","user":{"login":"Tamriel","id":5037153,"node_id":"MDQ6VXNlcjUwMzcxNTM=","avatar_url":"https://avatars2.githubusercontent.com/u/5037153?v=4","gravatar_id":"","url":"https://api.github.com/users/Tamriel","html_url":"https://github.com/Tamriel","followers_url":"https://api.github.com/users/Tamriel/followers","following_url":"https://api.github.com/users/Tamriel/following{/other_user}","gists_url":"https://api.github.com/users/Tamriel/gists{/gist_id}","starred_url":"https://api.github.com/users/Tamriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tamriel/subscriptions","organizations_url":"https://api.github.com/users/Tamriel/orgs","repos_url":"https://api.github.com/users/Tamriel/repos","events_url":"https://api.github.com/users/Tamriel/events{/privacy}","received_events_url":"https://api.github.com/users/Tamriel/received_events","type":"User","site_admin":false},"created_at":"2018-11-29T19:06:31Z","updated_at":"2018-11-29T19:06:31Z","author_association":"NONE","body":"The SQL command to calculate the balance is\r\n```\r\nSELECT SUM( account_balance )\r\nFROM groups\r\nWHERE deleted_at IS NULL\r\n```\r\n"}}
{"actor":{"display_login":"Tamriel"}}