ledger
different balance from ledger and hledger
1 Given this journal file:
2
3 ---------------------------------------------------------------
4 P 2011/12/20 EUR CHF 1.218
5
6 2011/12/20 Billing Customer
7 Creditor EUR 2992.50
8 Withholding Tax EUR 157.50
9 Income EUR -3150.00
10
11 P 2011/12/28 EUR CHF 1.2100
12
13 2011/12/28 Partial Payment from Customer
14 Bank CHF 2365.55
15 Exchange rate correction CHF 54.45
16 Creditor EUR -2000.00
17 ---------------------------------------------------------------
18
19 I get the following balances:
20
21 $ ledger -f dt balance
22 CHF 2365.55 Bank
23 EUR 992.50 Creditor
24 CHF 54.45 Exchange rate correction
25 EUR -3150.00 Income
26 EUR 157.50 Withholding Tax
27 --------------------
28 CHF 2420.00
29 EUR -2000.00
30
31
32 $ hledger -f dt balance
33 CHF 2365.55 Bank
34 EUR 2992.50
35 EUR -2000.00 Creditor
36 CHF 54.45 Exchange rate correction
37 EUR -3150.00 Income
38 EUR 157.50 Withholding Tax
39 --------------------
40 CHF 2420.00
41 EUR -2000.00
42
43 Notice how hledger has two EUR values in the same account "Creditor".
44
45 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?
Pasted by b on
diciembre 29, 2011 at 23:55 |
Lang: text |
(45 lines of code)