Hello, I am providing below a test file test4.ledger, and I inlined
comments with #
I do not get what I would expect. Is this intentional behaviour ?
Thanks
Thierry


# below is test file
# what is noticeable is that
#     I put € as my default currency
#     $ is converted to F, and then F is converted to €


$ cat test4.ledger
D 1000,00 €
P 1993/1/1 F 0,15244901723741037903399155737342539221320909754755 €
P 1993/1/1 $ 6 F

1994/1/1 Company
  Assets:Checking  10000 F
  Income:Salary

1998/1/1 Transfer
  Assets:US account  200 $
  Assets:Checking  -1000 F

1999/1/1 Books
  Expenses:Books  200 $
  Assets:US account

2002/1/1 Company
  Assets:Checking  2000 €
  Income:Salary


# below is output of ledger v2.6.2
# what surprise me is that $ in converted to F only, I would have
expected $ to F then F to €

thie...@rialto:~/VirtualBoxShare$ ledger -f test4.ledger -V reg Assets
1994/01/01 Company              Assets:Checking         1524,49 €
1524,49 €
1998/01/01 Transfer             Assets:US account            1000
F       1000 F
 
1524,49 €
                                Assets:Checking         -152,45
€       1000 F
 
1372,04 €
1999/01/01 Books                Assets:US account           -1000 F
1372,04 €
2002/01/01 Company              Assets:Checking         2000,00 €
3372,04 €


# below is output of ledger v3
# what surprise me is that I put € as my default currency, but this is
not valued to € (actually the valuation from $ to F is done, but not
the F to €)
# also, on the last line, the result is not collapsed, as it is in
output of v2.6.2

thie...@rialto:~/VirtualBoxShare$ ledger3 -f test4.ledger -V reg
Assets
94-Jan-01 Company               Assets:Checking             10000
F      10000 F
98-Jan-01 Transfer              Assets:US account            1000
F      11000 F
                                Assets:Checking             -1000
F      10000 F
99-Jan-01 Books                 Assets:US account           -1000
F       9000 F
02-Jan-01 Company               Assets:Checking           2000,00
€       9000 F
 
2000,00 €

Reply via email to