>>>>> Kamal Marhubi <[email protected]> writes:

> Hi, Is it possible to tell Ledger an entry with transactions in two
> commodities / currencies balances, so that it can calculate the exchange
> rate?

> 2012-03-12 * Withdrawal
>     Assets:Cash                           USD 200.00 
>     Expenses:Banking:Fees                   USD 2.50
>     Assets:Chequing                      CAD -203.42
>     Epenses:Banking:Fees                    CAD 2.00
>     Assets:Chqeuing                        CAD -2.00

As far as I can tell, this already does exactly what you want.  It does reveal
a bug, though as a bogus price entry gets created:

    ~/src/ledger $ ./ledger -f /tmp/foo.dat pricedb
    P 2012/03/12 00:00:00 CAD CAD 1.00454320987654321
    P 2012/03/12 00:00:00 USD CAD 1.00454320987654321

John

Reply via email to