This looks like a bug in ledger v3 to me.  Why does it not balance due
to 0.01 EUR?

% ledger -f - -X EUR  bal
          -45.67 EUR  Bar
           45.66 EUR  Foo
--------------------
           -0.01 EUR

Input file:

D 1,000.00 EUR

2010-03-18 Postage
  Foo        11.04 GBP @@ 12.46 EUR  ; @ 1.129 EUR
  Bar

2010-03-20 Postage
  Foo         2.61 GBP @@  2.94 EUR  ; @ 1.127 EUR
  Bar

2010-03-21 foo
  Foo        20.00 GBP @@ 22.52 EUR  ; @ 1.126 EUR
  Bar

2010-03-21 bar
  Foo         6.88 GBP @@  7.75 EUR  ; @ 1.127 EUR
  Bar

Actually, it seems the problem is because the amounts in Bar are in
EUR whereas the amounts in Foo are in GBP and because the exchange
rates between GBP and EUR in my transacations vary, they don't balance
(presumably ledger uses the exchange rate from the last transacation
to compute the balance).

What's the best way to deal with this?

-- 
Martin Michlmayr
http://www.cyrius.com/

Reply via email to