{"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":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-26T07:44:13Z","updated_at":"2016-10-27T01:37:23Z","closed_at":null,"body":"Maybe I'm doing something wrong. In a QFX file, the following OFX transaction:\r\n\r\n      <INCOME>\r\n        <INVTRAN>\r\n          <FITID>CD-10-5WF36378-1-USD-06/20/2016-1\r\n          <DTTRADE>20160620070000.000[-5:CDT]\r\n        </INVTRAN>\r\n        <SECID>\r\n          <UNIQUEID>921943858\r\n          <UNIQUEIDTYPE>CUSIP\r\n        </SECID>\r\n        <INCOMETYPE>DIV\r\n        <TOTAL>1.45\r\n        <SUBACCTSEC>CASH\r\n        <SUBACCTFUND>CASH\r\n      </INCOME>\r\n\r\nis translated into the following hledger transaction:\r\n\r\n    2016/06/20 Assets:WealthFront: income\r\n        ; ofxid: 10780.10-5WF36378.CD-10-5WF36378-1-USD-06_20_2016-1\r\n        Assets:WealthFront                 0 \"921943858\" @ $0\r\n        Assets:WealthFront                        -$0.00\r\n\r\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.\r\n\r\nAlso, the end of the created hledger file has lines of the format:\r\nP 2016/10/06 12:00:00 78468R721 49.71"},"comment":{"url":"https://api.github.com/repos/egh/ledger-autosync/issues/comments/256523906","html_url":"https://github.com/egh/ledger-autosync/issues/13#issuecomment-256523906","issue_url":"https://api.github.com/repos/egh/ledger-autosync/issues/13","id":256523906,"user":{"login":"jblachly","id":5987153,"avatar_url":"https://avatars.githubusercontent.com/u/5987153?v=3","gravatar_id":"","url":"https://api.github.com/users/jblachly","html_url":"https://github.com/jblachly","followers_url":"https://api.github.com/users/jblachly/followers","following_url":"https://api.github.com/users/jblachly/following{/other_user}","gists_url":"https://api.github.com/users/jblachly/gists{/gist_id}","starred_url":"https://api.github.com/users/jblachly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jblachly/subscriptions","organizations_url":"https://api.github.com/users/jblachly/orgs","repos_url":"https://api.github.com/users/jblachly/repos","events_url":"https://api.github.com/users/jblachly/events{/privacy}","received_events_url":"https://api.github.com/users/jblachly/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T01:37:23Z","updated_at":"2016-10-27T01:37:23Z","body":"@daniel-vainsencher , @egh is right, commit associated w issue #9  should fix your problem with `0 \"..number code..\" @ $0` , and a pending commit will also replace the `78468R721` (or whatever) in the \"P\" lines, which are commodity price lines.\r\n"}}
{"actor":{"display_login":"jblachly"}}