TL;DR
I would like to use the -X flag to display balances in an alternative 
currency with Ledger 3.2.1-20200518. The conversion functionality works 
just fine, but the format directive isn’t working for me.

Everything in my journal is in USD, but I would like to be able to show my 
balances in AUD. To do this, I simply added the following line to my price 
database.

P 2021/10/30 16:22:00 AUD $0.75244225

Based on information in the manual I should be able to use the format 
commodity directive to handle the formatting for a given commodity, so I’ve 
set mine up as follows:

commodity AUD
   note Aussie Dollars
   format A1,000.00

When I run ledger, the balances are properly calculated and displayed in 
AUD, but the formatting is not honored.

ledger -f register.ldg --price-db price_db.txt -V --strict –explicit bal 
Bank -X AUD

The output looks looks like this:

AUD100000 Assets:Banking
 AUD50000   Acct1
 AUD20000   Acct2
 AUD30000   Acct3

What am I missing?

Thanks
JL

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/b50208a1-3c4b-471b-b4f8-084f0902289fn%40googlegroups.com.

Reply via email to