{"action":"created","issue":{"url":"https://api.github.com/repos/egh/ledger-autosync/issues/13","repository_url":"https://api.github.com/repos/egh/ledger-autosync","labels_url":"https://api.github.com/repos/egh/ledger-autosync/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/egh/ledger-autosync/issues/13/comments","events_url":"https://api.github.com/repos/egh/ledger-autosync/issues/13/events","html_url":"https://github.com/egh/ledger-autosync/issues/13","id":185319364,"number":13,"title":"Very lossy OFX translation","user":{"login":"daniel-vainsencher","id":1518422,"avatar_url":"https://avatars.githubusercontent.com/u/1518422?v=3","gravatar_id":"","url":"https://api.github.com/users/daniel-vainsencher","html_url":"https://github.com/daniel-vainsencher","followers_url":"https://api.github.com/users/daniel-vainsencher/followers","following_url":"https://api.github.com/users/daniel-vainsencher/following{/other_user}","gists_url":"https://api.github.com/users/daniel-vainsencher/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-vainsencher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-vainsencher/subscriptions","organizations_url":"https://api.github.com/users/daniel-vainsencher/orgs","repos_url":"https://api.github.com/users/daniel-vainsencher/repos","events_url":"https://api.github.com/users/daniel-vainsencher/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-vainsencher/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-10-26T07:44:13Z","updated_at":"2016-11-20T20:22:18Z","closed_at":"2016-11-20T20:22:18Z","body":"Maybe I'm doing something wrong. In a QFX file, the following OFX transaction:\n\n```\n  <INCOME>\n    <INVTRAN>\n      <FITID>CD-10-5WF36378-1-USD-06/20/2016-1\n      <DTTRADE>20160620070000.000[-5:CDT]\n    </INVTRAN>\n    <SECID>\n      <UNIQUEID>921943858\n      <UNIQUEIDTYPE>CUSIP\n    </SECID>\n    <INCOMETYPE>DIV\n    <TOTAL>1.45\n    <SUBACCTSEC>CASH\n    <SUBACCTFUND>CASH\n  </INCOME>\n```\n\nis translated into the following hledger transaction:\n\n```\n2016/06/20 Assets:WealthFront: income\n    ; ofxid: 10780.10-5WF36378.CD-10-5WF36378-1-USD-06_20_2016-1\n    Assets:WealthFront                 0 \"921943858\" @ $0\n    Assets:WealthFront                        -$0.00\n```\n\nI set the accounts using parameters, so ignore those. But the amount got changed from 1.45 to 0, and the fact that it is a dividend was lost. Note the transaction ID matches, so that is the same transaction.\n\nAlso, the end of the created hledger file has lines of the format:\nP 2016/10/06 12:00:00 78468R721 49.71\n"},"comment":{"url":"https://api.github.com/repos/egh/ledger-autosync/issues/comments/261802790","html_url":"https://github.com/egh/ledger-autosync/issues/13#issuecomment-261802790","issue_url":"https://api.github.com/repos/egh/ledger-autosync/issues/13","id":261802790,"user":{"login":"egh","id":22718,"avatar_url":"https://avatars.githubusercontent.com/u/22718?v=3","gravatar_id":"","url":"https://api.github.com/users/egh","html_url":"https://github.com/egh","followers_url":"https://api.github.com/users/egh/followers","following_url":"https://api.github.com/users/egh/following{/other_user}","gists_url":"https://api.github.com/users/egh/gists{/gist_id}","starred_url":"https://api.github.com/users/egh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egh/subscriptions","organizations_url":"https://api.github.com/users/egh/orgs","repos_url":"https://api.github.com/users/egh/repos","events_url":"https://api.github.com/users/egh/events{/privacy}","received_events_url":"https://api.github.com/users/egh/received_events","type":"User","site_admin":false},"created_at":"2016-11-20T20:22:17Z","updated_at":"2016-11-20T20:22:17Z","body":"I'm going to close this, please feel free to reopen if it is still an issue."}}
{"actor":{"display_login":"egh"}}