mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-25 19:31:44 +03:00
35 lines
633 B
Plaintext
35 lines
633 B
Plaintext
# a commodity may contain/end with numbers, if double quoted
|
|
# 1. without quotes, fail. XXX parse error should be clearer here
|
|
hledgerdev -f- print
|
|
<<<
|
|
2010-04-05 x
|
|
a 10 DE0002635307
|
|
b
|
|
>>>2 /unexpected "0"/
|
|
>>>= 1
|
|
# 2. with quotes, ok; quotes appear in print output
|
|
hledgerdev -f- print
|
|
<<<
|
|
2010-04-05 x
|
|
a 10 "DE 0002 635307"
|
|
b
|
|
>>>
|
|
2010/04/05 x
|
|
a 10 "DE 0002 635307"
|
|
b -10 "DE 0002 635307"
|
|
|
|
>>>=0
|
|
|
|
# 3. and in other reports too, I guess
|
|
hledgerdev -f- balance
|
|
<<<
|
|
2010-04-05 x
|
|
a 10 "DE0002635307"
|
|
b
|
|
>>>
|
|
10 "DE0002635307" a
|
|
-10 "DE0002635307" b
|
|
--------------------
|
|
0
|
|
>>>=0
|