{"action":"closed","issue":{"url":"https://api.github.com/repos/Benrnz/BudgetAnalyser/issues/80","labels_url":"https://api.github.com/repos/Benrnz/BudgetAnalyser/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/Benrnz/BudgetAnalyser/issues/80/comments","events_url":"https://api.github.com/repos/Benrnz/BudgetAnalyser/issues/80/events","html_url":"https://github.com/Benrnz/BudgetAnalyser/issues/80","id":116959244,"number":80,"title":"Allocating surplus transfers with new Transfer Feature breaks Bank Surplus Widget","user":{"login":"Benrnz","id":53477,"avatar_url":"https://avatars.githubusercontent.com/u/53477?v=3","gravatar_id":"","url":"https://api.github.com/users/Benrnz","html_url":"https://github.com/Benrnz","followers_url":"https://api.github.com/users/Benrnz/followers","following_url":"https://api.github.com/users/Benrnz/following{/other_user}","gists_url":"https://api.github.com/users/Benrnz/gists{/gist_id}","starred_url":"https://api.github.com/users/Benrnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Benrnz/subscriptions","organizations_url":"https://api.github.com/users/Benrnz/orgs","repos_url":"https://api.github.com/users/Benrnz/repos","events_url":"https://api.github.com/users/Benrnz/events{/privacy}","received_events_url":"https://api.github.com/users/Benrnz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Benrnz/BudgetAnalyser/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-14T23:20:12Z","updated_at":"2015-11-23T07:33:55Z","closed_at":"2015-11-23T07:33:55Z","body":"This is because the opening balance used for the Bank Surplus widget is the Surplus balance from the current month's ledger reconciliation.  So this balance has already accounted for the transfer amount.\r\nScenario:\r\n1) Surplus Balance: $4000.\r\n2) Transfer excess surplus to savings during monthly reconciliation - -$3000. \r\n2.1) Create ledger transaction to debit Surplus: -$3000.\r\n2.2) Create matching rule so when statement transaction is imported it is matched and not accounted twice in ledgerbook.\r\n3) Bank Surplus widget shows starting surplus balance of $1000.\r\n4) Statement is imported a few days later.\r\n5) Bank Surplus widget now shows surplus balance of -$2000."}}