egh / ledger-autosync

Synchronize your ledger-cli files with your bank.
GNU General Public License v3.0
273 stars 42 forks source link

CUSIP-Ticker remapping #11

Closed jblachly closed 8 years ago

jblachly commented 8 years ago

This addresses issue #10

Caveats: I could not construct a test using existing tests as a template, because these test the output of transaction formatting, etc., whereas this commit modifies the entire output of print_results (indeed, the transformation is done in print_results() because it is the final common pathway of the program).

I did include test fixture data (cusip.ofx) for when a test is constructed; this test data includes a stock/mf transaction, a non-reinvested dividend, and a position.

General comments on structure:

egh commented 8 years ago

Thanks! This looks good. I have a few things I'd like to change, but I can do this later: