{"action":"opened","number":435,"pull_request":{"url":"https://api.github.com/repos/ledger/ledger/pulls/435","id":46560988,"html_url":"https://github.com/ledger/ledger/pull/435","diff_url":"https://github.com/ledger/ledger/pull/435.diff","patch_url":"https://github.com/ledger/ledger/pull/435.patch","issue_url":"https://api.github.com/repos/ledger/ledger/issues/435","number":435,"state":"open","locked":false,"title":"Balance at point and target commodity","user":{"login":"Fuco1","id":2664959,"avatar_url":"https://avatars.githubusercontent.com/u/2664959?v=3","gravatar_id":"","url":"https://api.github.com/users/Fuco1","html_url":"https://github.com/Fuco1","followers_url":"https://api.github.com/users/Fuco1/followers","following_url":"https://api.github.com/users/Fuco1/following{/other_user}","gists_url":"https://api.github.com/users/Fuco1/gists{/gist_id}","starred_url":"https://api.github.com/users/Fuco1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fuco1/subscriptions","organizations_url":"https://api.github.com/users/Fuco1/orgs","repos_url":"https://api.github.com/users/Fuco1/repos","events_url":"https://api.github.com/users/Fuco1/events{/privacy}","received_events_url":"https://api.github.com/users/Fuco1/received_events","type":"User","site_admin":false},"body":"I often spend to the same account from different currencies (I go back and forth from Euro to non-Euro countries), so the quick balance often gets complex and unreadable.\r\n\r\nThis patch adds two functions:\r\n1. A general facility to ask user for a commodity name\r\n2. Adds `C-u` to `ledger-display-balance-at-point` which causes it to ask for the target commodity and append `-X` switch to the ledger command produced.","created_at":"2015-10-01T18:44:28Z","updated_at":"2015-10-01T18:44:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0440df4236b408b0ac381cc74f47f2fcdb1b5565","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ledger/ledger/pulls/435/commits","review_comments_url":"https://api.github.com/repos/ledger/ledger/pulls/435/comments","review_comment_url":"https://api.github.com/repos/ledger/ledger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ledger/ledger/issues/435/comments","statuses_url":"https://api.github.com/repos/ledger/ledger/statuses/a8fa013417232715151f20bbe15d0b3a96a753f2","head":{"label":"Fuco1:balance-at-point-target-commodity","ref":"balance-at-point-target-commodity","sha":"a8fa013417232715151f20bbe15d0b3a96a753f2","user":{"login":"Fuco1","id":2664959,"avatar_url":"https://avatars.githubusercontent.com/u/2664959?v=3","gravatar_id":"","url":"https://api.github.com/users/Fuco1","html_url":"https://github.com/Fuco1","followers_url":"https://api.github.com/users/Fuco1/followers","following_url":"https://api.github.com/users/Fuco1/following{/other_user}","gists_url":"https://api.github.com/users/Fuco1/gists{/gist_id}","starred_url":"https://api.github.com/users/Fuco1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fuco1/subscriptions","organizations_url":"https://api.github.com/users/Fuco1/orgs","repos_url":"https://api.github.com/users/Fuco1/repos","events_url":"https://api.github.com/users/Fuco1/events{/privacy}","received_events_url":"https://api.github.com/users/Fuco1/received_events","type":"User","site_admin":false},"repo":{"id":42770950,"name":"ledger","full_name":"Fuco1/ledger","owner":{"login":"Fuco1","id":2664959,"avatar_url":"https://avatars.githubusercontent.com/u/2664959?v=3","gravatar_id":"","url":"https://api.github.com/users/Fuco1","html_url":"https://github.com/Fuco1","followers_url":"https://api.github.com/users/Fuco1/followers","following_url":"https://api.github.com/users/Fuco1/following{/other_user}","gists_url":"https://api.github.com/users/Fuco1/gists{/gist_id}","starred_url":"https://api.github.com/users/Fuco1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fuco1/subscriptions","organizations_url":"https://api.github.com/users/Fuco1/orgs","repos_url":"https://api.github.com/users/Fuco1/repos","events_url":"https://api.github.com/users/Fuco1/events{/privacy}","received_events_url":"https://api.github.com/users/Fuco1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Fuco1/ledger","description":"Double-entry accounting system with a command-line reporting interface","fork":true,"url":"https://api.github.com/repos/Fuco1/ledger","forks_url":"https://api.github.com/repos/Fuco1/ledger/forks","keys_url":"https://api.github.com/repos/Fuco1/ledger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Fuco1/ledger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Fuco1/ledger/teams","hooks_url":"https://api.github.com/repos/Fuco1/ledger/hooks","issue_events_url":"https://api.github.com/repos/Fuco1/ledger/issues/events{/number}","events_url":"https://api.github.com/repos/Fuco1/ledger/events","assignees_url":"https://api.github.com/repos/Fuco1/ledger/assignees{/user}","branches_url":"https://api.github.com/repos/Fuco1/ledger/branches{/branch}","tags_url":"https://api.github.com/repos/Fuco1/ledger/tags","blobs_url":"https://api.github.com/repos/Fuco1/ledger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Fuco1/ledger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Fuco1/ledger/git/refs{/sha}","trees_url":"https://api.github.com/repos/Fuco1/ledger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Fuco1/ledger/statuses/{sha}","languages_url":"https://api.github.com/repos/Fuco1/ledger/languages","stargazers_url":"https://api.github.com/repos/Fuco1/ledger/stargazers","contributors_url":"https://api.github.com/repos/Fuco1/ledger/contributors","subscribers_url":"https://api.github.com/repos/Fuco1/ledger/subscribers","subscription_url":"https://api.github.com/repos/Fuco1/ledger/subscription","commits_url":"https://api.github.com/repos/Fuco1/ledger/commits{/sha}","git_commits_url":"https://api.github.com/repos/Fuco1/ledger/git/commits{/sha}","comments_url":"https://api.github.com/repos/Fuco1/ledger/comments{/number}","issue_comment_url":"https://api.github.com/repos/Fuco1/ledger/issues/comments{/number}","contents_url":"https://api.github.com/repos/Fuco1/ledger/contents/{+path}","compare_url":"https://api.github.com/repos/Fuco1/ledger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Fuco1/ledger/merges","archive_url":"https://api.github.com/repos/Fuco1/ledger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Fuco1/ledger/downloads","issues_url":"https://api.github.com/repos/Fuco1/ledger/issues{/number}","pulls_url":"https://api.github.com/repos/Fuco1/ledger/pulls{/number}","milestones_url":"https://api.github.com/repos/Fuco1/ledger/milestones{/number}","notifications_url":"https://api.github.com/repos/Fuco1/ledger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Fuco1/ledger/labels{/name}","releases_url":"https://api.github.com/repos/Fuco1/ledger/releases{/id}","created_at":"2015-09-19T11:52:09Z","updated_at":"2015-09-19T11:52:12Z","pushed_at":"2015-10-01T18:42:47Z","git_url":"git://github.com/Fuco1/ledger.git","ssh_url":"git@github.com:Fuco1/ledger.git","clone_url":"https://github.com/Fuco1/ledger.git","svn_url":"https://github.com/Fuco1/ledger","homepage":"http://www.ledger-cli.org","size":13086,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"next"}},"base":{"label":"ledger:next","ref":"next","sha":"64426842a34f0517e43a47a404cd15c764f1c7f2","user":{"login":"ledger","id":2710687,"avatar_url":"https://avatars.githubusercontent.com/u/2710687?v=3","gravatar_id":"","url":"https://api.github.com/users/ledger","html_url":"https://github.com/ledger","followers_url":"https://api.github.com/users/ledger/followers","following_url":"https://api.github.com/users/ledger/following{/other_user}","gists_url":"https://api.github.com/users/ledger/gists{/gist_id}","starred_url":"https://api.github.com/users/ledger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ledger/subscriptions","organizations_url":"https://api.github.com/users/ledger/orgs","repos_url":"https://api.github.com/users/ledger/repos","events_url":"https://api.github.com/users/ledger/events{/privacy}","received_events_url":"https://api.github.com/users/ledger/received_events","type":"Organization","site_admin":false},"repo":{"id":16309,"name":"ledger","full_name":"ledger/ledger","owner":{"login":"ledger","id":2710687,"avatar_url":"https://avatars.githubusercontent.com/u/2710687?v=3","gravatar_id":"","url":"https://api.github.com/users/ledger","html_url":"https://github.com/ledger","followers_url":"https://api.github.com/users/ledger/followers","following_url":"https://api.github.com/users/ledger/following{/other_user}","gists_url":"https://api.github.com/users/ledger/gists{/gist_id}","starred_url":"https://api.github.com/users/ledger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ledger/subscriptions","organizations_url":"https://api.github.com/users/ledger/orgs","repos_url":"https://api.github.com/users/ledger/repos","events_url":"https://api.github.com/users/ledger/events{/privacy}","received_events_url":"https://api.github.com/users/ledger/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ledger/ledger","description":"Double-entry accounting system with a command-line reporting interface","fork":false,"url":"https://api.github.com/repos/ledger/ledger","forks_url":"https://api.github.com/repos/ledger/ledger/forks","keys_url":"https://api.github.com/repos/ledger/ledger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ledger/ledger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ledger/ledger/teams","hooks_url":"https://api.github.com/repos/ledger/ledger/hooks","issue_events_url":"https://api.github.com/repos/ledger/ledger/issues/events{/number}","events_url":"https://api.github.com/repos/ledger/ledger/events","assignees_url":"https://api.github.com/repos/ledger/ledger/assignees{/user}","branches_url":"https://api.github.com/repos/ledger/ledger/branches{/branch}","tags_url":"https://api.github.com/repos/ledger/ledger/tags","blobs_url":"https://api.github.com/repos/ledger/ledger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ledger/ledger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ledger/ledger/git/refs{/sha}","trees_url":"https://api.github.com/repos/ledger/ledger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ledger/ledger/statuses/{sha}","languages_url":"https://api.github.com/repos/ledger/ledger/languages","stargazers_url":"https://api.github.com/repos/ledger/ledger/stargazers","contributors_url":"https://api.github.com/repos/ledger/ledger/contributors","subscribers_url":"https://api.github.com/repos/ledger/ledger/subscribers","subscription_url":"https://api.github.com/repos/ledger/ledger/subscription","commits_url":"https://api.github.com/repos/ledger/ledger/commits{/sha}","git_commits_url":"https://api.github.com/repos/ledger/ledger/git/commits{/sha}","comments_url":"https://api.github.com/repos/ledger/ledger/comments{/number}","issue_comment_url":"https://api.github.com/repos/ledger/ledger/issues/comments{/number}","contents_url":"https://api.github.com/repos/ledger/ledger/contents/{+path}","compare_url":"https://api.github.com/repos/ledger/ledger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ledger/ledger/merges","archive_url":"https://api.github.com/repos/ledger/ledger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ledger/ledger/downloads","issues_url":"https://api.github.com/repos/ledger/ledger/issues{/number}","pulls_url":"https://api.github.com/repos/ledger/ledger/pulls{/number}","milestones_url":"https://api.github.com/repos/ledger/ledger/milestones{/number}","notifications_url":"https://api.github.com/repos/ledger/ledger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ledger/ledger/labels{/name}","releases_url":"https://api.github.com/repos/ledger/ledger/releases{/id}","created_at":"2008-05-12T19:39:49Z","updated_at":"2015-10-01T13:32:50Z","pushed_at":"2015-10-01T18:44:29Z","git_url":"git://github.com/ledger/ledger.git","ssh_url":"git@github.com:ledger/ledger.git","clone_url":"https://github.com/ledger/ledger.git","svn_url":"https://github.com/ledger/ledger","homepage":"http://www.ledger-cli.org","size":17845,"stargazers_count":1300,"watchers_count":1300,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":202,"mirror_url":null,"open_issues_count":12,"forks":202,"open_issues":12,"watchers":1300,"default_branch":"next"}},"_links":{"self":{"href":"https://api.github.com/repos/ledger/ledger/pulls/435"},"html":{"href":"https://github.com/ledger/ledger/pull/435"},"issue":{"href":"https://api.github.com/repos/ledger/ledger/issues/435"},"comments":{"href":"https://api.github.com/repos/ledger/ledger/issues/435/comments"},"review_comments":{"href":"https://api.github.com/repos/ledger/ledger/pulls/435/comments"},"review_comment":{"href":"https://api.github.com/repos/ledger/ledger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ledger/ledger/pulls/435/commits"},"statuses":{"href":"https://api.github.com/repos/ledger/ledger/statuses/a8fa013417232715151f20bbe15d0b3a96a753f2"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":19,"deletions":4,"changed_files":2}}