There are a couple of problems with ledger when using currencies that
were replaced by the Euro as well as the Euro.

First, I know that ledger is mostly designed as a "calculator" without
any knowledge about the actual input.  However, given that some
currencies were replaced by the Euro and have fixed exchange rates
that will not change, it would be nice if ledger would know about
those.  How about adding a text file to ledger that is read by default
with such fixed conversion rates?  (If you agree, I'm happy to write
one for the currencies replaced by the Euro.)

Related to this is a problem with showing currencies.  Let's say that
I have accounts with ATS, EUR and GBP.  How can I tell ledger to
convert ATS to EUR but do no other conversation.  -X EUR won't work
because it would also convert GBP, but I want to see both EUR and GBP
(I just want the obsolete ATS to be converted to EUR).  Is this
possible somehow?

Finally, there appear to be some artefacts because ledger doesn't know
that ATS is a currency replaced by EUR.  Normally, "ledger bal" does
not display accounts that are empty (see the first example below).
But if I put something into an account as ATS and then take out
exactly the same amount (but as EUR), "ledger bal" will show the
account name and "0" (probably because it switches to commodity mode).

Example:

a)

2010-04-02 Test
    A:Foo  10.00
    A:Bar

2010-04-02 Test
    A:Foo  -10.00
    A:Baz

b)

P 2001-12-31 EUR 13.7603 ATS

2001-01-01 Test
    B:Foo  13.7603 ATS
    B:Bar

2010-04-02 Test
    B:Foo  -1.00 EUR
    B:Baz

a) will show no Foo with "ledger bal" but b) will show "0  Foo"

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


-- 
To unsubscribe, reply using "remove me" as the subject.

Reply via email to