{"action":"created","issue":{"url":"https://api.github.com/repos/simonmichael/hledger/issues/283","labels_url":"https://api.github.com/repos/simonmichael/hledger/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/simonmichael/hledger/issues/283/comments","events_url":"https://api.github.com/repos/simonmichael/hledger/issues/283/events","html_url":"https://github.com/simonmichael/hledger/issues/283","id":106190720,"number":283,"title":"hledger add simplifies too much. Silently drops important information.","user":{"login":"btittelbach","id":635660,"avatar_url":"https://avatars.githubusercontent.com/u/635660?v=3","gravatar_id":"","url":"https://api.github.com/users/btittelbach","html_url":"https://github.com/btittelbach","followers_url":"https://api.github.com/users/btittelbach/followers","following_url":"https://api.github.com/users/btittelbach/following{/other_user}","gists_url":"https://api.github.com/users/btittelbach/gists{/gist_id}","starred_url":"https://api.github.com/users/btittelbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btittelbach/subscriptions","organizations_url":"https://api.github.com/users/btittelbach/orgs","repos_url":"https://api.github.com/users/btittelbach/repos","events_url":"https://api.github.com/users/btittelbach/events{/privacy}","received_events_url":"https://api.github.com/users/btittelbach/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/simonmichael/hledger/labels/add","name":"add","color":"bfd4f2"},{"url":"https://api.github.com/repos/simonmichael/hledger/labels/BUG","name":"BUG","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/simonmichael/hledger/milestones/3","html_url":"https://github.com/simonmichael/hledger/milestones/0.27","labels_url":"https://api.github.com/repos/simonmichael/hledger/milestones/3/labels","id":1289059,"number":3,"title":"0.27","description":"","creator":{"login":"simonmichael","id":10144,"avatar_url":"https://avatars.githubusercontent.com/u/10144?v=3","gravatar_id":"","url":"https://api.github.com/users/simonmichael","html_url":"https://github.com/simonmichael","followers_url":"https://api.github.com/users/simonmichael/followers","following_url":"https://api.github.com/users/simonmichael/following{/other_user}","gists_url":"https://api.github.com/users/simonmichael/gists{/gist_id}","starred_url":"https://api.github.com/users/simonmichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonmichael/subscriptions","organizations_url":"https://api.github.com/users/simonmichael/orgs","repos_url":"https://api.github.com/users/simonmichael/repos","events_url":"https://api.github.com/users/simonmichael/events{/privacy}","received_events_url":"https://api.github.com/users/simonmichael/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":4,"state":"open","created_at":"2015-09-03T19:59:20Z","updated_at":"2015-09-13T00:02:26Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-09-12T23:43:55Z","updated_at":"2015-09-13T01:25:29Z","closed_at":null,"body":"Hi,\r\n\r\nI planned to do beverages inventory and cash-register calculation with hledger and playing around a bit with it seems that hledger-add does not handle commodites very well.\r\n\r\ne.g. I tried using ```hledger add``` to add the following transaction:\r\n```\r\n2015/09/07 bought Mannerschnitten\r\n    assets:current:cash:register        -23.88 EUR\r\n    assets:current:inventory-edibles    48 Mannerschnitten @@ 23.88 EUR\r\n```\r\n\r\nbut hledger simplifies and actually adds the following transaction to the journal:\r\n```\r\n    assets:current:cash:register        -23.88 EUR\r\n    assets:current:inventory-edibles\r\n```\r\nThis is clearly a bug where hledger unintentionally disposes of important information, i.e. the quantity of the commodity.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26643695-hledger-add-simplifies-too-much-silently-drops-important-information?utm_campaign=plugin&utm_content=tracker%2F536505&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F536505&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/simonmichael/hledger/issues/comments/139837207","html_url":"https://github.com/simonmichael/hledger/issues/283#issuecomment-139837207","issue_url":"https://api.github.com/repos/simonmichael/hledger/issues/283","id":139837207,"user":{"login":"simonmichael","id":10144,"avatar_url":"https://avatars.githubusercontent.com/u/10144?v=3","gravatar_id":"","url":"https://api.github.com/users/simonmichael","html_url":"https://github.com/simonmichael","followers_url":"https://api.github.com/users/simonmichael/followers","following_url":"https://api.github.com/users/simonmichael/following{/other_user}","gists_url":"https://api.github.com/users/simonmichael/gists{/gist_id}","starred_url":"https://api.github.com/users/simonmichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonmichael/subscriptions","organizations_url":"https://api.github.com/users/simonmichael/orgs","repos_url":"https://api.github.com/users/simonmichael/repos","events_url":"https://api.github.com/users/simonmichael/events{/privacy}","received_events_url":"https://api.github.com/users/simonmichael/received_events","type":"User","site_admin":false},"created_at":"2015-09-13T01:25:29Z","updated_at":"2015-09-13T01:25:29Z","body":"Works fine here.."}}