egh / ledger-autosync

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

Set currency for import #52

Open colindean opened 6 years ago

colindean commented 6 years ago

I've got a QFX file from Vanguard. It's denoted in USD, but ledger-autosync outputs transactions with a $ for USD amounts. I'd prefer if I could have it output USD to conform to the rest of my records. I don't see a way to do that presently.

egh commented 6 years ago

Seems like a good idea. I prefer $but I guess that is a personal choice :)

colindean commented 6 years ago

Adding a commodity directive worked for me:

commodity USD
  alias $

This was previously undocumented because now been added to to the ledger documentation as of last night.

501st-alpha1 commented 6 years ago

Adding a commodity directive worked for me:

Do you mean that ledger-autosync now outputs transactions with USD instead of $? I was trying to do the inverse in #46, but it didn't work for me when importing a CSV file.

colindean commented 6 years ago

No, setting that directive makes USD and $ show up as USD in reports.