balance, currencies problem

7 views
Skip to first unread message

Sascha Welter

unread,
Dec 29, 2011, 5:24:10 PM12/29/11
to hle...@googlegroups.com
Hi!

Given this journal file:

---------------------------------------------------------------
P 2011/12/20 EUR CHF 1.218

2011/12/20 Billing Customer
Creditor EUR 2992.50
Withholding Tax EUR 157.50
Income EUR -3150.00

P 2011/12/28 EUR CHF 1.2100

2011/12/28 Partial Payment from Customer
Bank CHF 2365.55
Exchange rate correction CHF 54.45
Creditor EUR -2000.00
---------------------------------------------------------------

I get the following balances:

$ ledger -f dt balance
CHF 2365.55 Bank
EUR 992.50 Creditor
CHF 54.45 Exchange rate correction
EUR -3150.00 Income
EUR 157.50 Withholding Tax
--------------------
CHF 2420.00
EUR -2000.00


$ hledger -f dt balance
CHF 2365.55 Bank
EUR 2992.50
EUR -2000.00 Creditor
CHF 54.45 Exchange rate correction
EUR -3150.00 Income
EUR 157.50 Withholding Tax
--------------------
CHF 2420.00
EUR -2000.00

Notice how hledger has two EUR values in the same account "Creditor".

When I remove the two lines to set the exchange rate, then hledger gives
the same balance as ledger. So, what am I doing wrong?

Regards,

Sascha

Simon Michael

unread,
Jan 5, 2012, 6:52:36 AM1/5/12
to hle...@googlegroups.com
On 12/29/11 10:24 PM, Sascha Welter wrote:
> When I remove the two lines to set the exchange rate, then hledger gives
> the same balance as ledger. So, what am I doing wrong?

For the record: this was fixed, cf #76, #69. Thanks Sascha.

Reply all
Reply to author
Forward
0 new messages