This is me, Wu!
Lang: text
Get the source!
Actions
Recent Pastes
python471881152 ( febrero 23, 2012 at 08:18)
MySQL (MarcosBL febrero 17, 2012 at 18:55)
my first iptables script (Wu febrero 16, 2012 at 10:48)
debian ovh server eth weird error (Wu febrero 13, 2012 at 10:10)
ledger currencies (betabug enero 22, 2012 at 20:11)
currency (betabug enero 18, 2012 at 16:29)
ledger (b diciembre 29, 2011 at 23:55)
sed parser for templates (Wu diciembre 17, 2011 at 18:59)
hg diff after mistery pull (bebu diciembre 17, 2011 at 16:10)
mailcap (bebu diciembre 16, 2011 at 11:11)
About
This is the paste site from e-shell.org, my personal website. It is an instance of the CodeSharingZ Zope Product (just take a look at http://zopecode.codigo23.net/wiki/CodeSharingZ to learn more about it). Feel free to paste whatever you want, but notice that all the pastes in here are deleted in a regular basis.
Links
L text
(http://en.wikipedia.org/wiki/Plain_text)

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)