Ledger appears to break the fundamental accounting eqn when using multiple 
currencies:

2013/01/01 * Equity
Equity:Opening balances       $ -1000
Assets:BofA                   $  1000

2013/01/02 * Oxbridge purchase (A337380)
Assets:Metals:PAMP Suisse gold XAU        1 @ $ 1000
Assets:BofA $      -1000

P 2013/01/03 02:18:01 XAU $1100

2013/01/19 * Sale (A337380)
Assets:Metals:PAMP Suisse gold XAU       -1 {$1000} @ $ 2000
Income:Trading:Gold trades $      -1000
Assets:BofA $       2000

when running ledger bal:

ledger -f tmp/test.dat bal
              $ 2000  Assets:BofA
                   0  Equity
              $ 1000    Capital Gains
             $ -1000    Opening balances
             $ -1000  Income:Trading:Gold trades
--------------------
              $ 1000

but see, it does not balance.  If I do:

ledger -f tmp/test.dat bal -B
              $ 1000  Assets
              $ 2000    BofA
             $ -1000    Metals:PAMP Suisse gold
                   0  Equity
              $ 1000    Capital Gains
             $ -1000    Opening balances
             $ -1000  Income:Trading:Gold trades
--------------------
                   0

then it balances.

What gives?  How best to do accounting for multiple currencies then?

-- 

--- 
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to