This allows period and comma to be used for decimal point and digit group separator or vice versa, and also flexible digit groups. See http://en.wikipedia.org/wiki/Decimal_separator . Digit group separators are possibly not worth the trouble and might not stay.
25 lines
304 B
Plaintext
25 lines
304 B
Plaintext
# 1. a no-commodity amount with a unit price
|
|
bin/hledger -f - print
|
|
<<<
|
|
2010/1/1 x
|
|
a 1 @ $2
|
|
b
|
|
|
|
>>>
|
|
2010/01/01 x
|
|
a 1 @ $2
|
|
b -1 @ $2
|
|
|
|
# 2. with a total price
|
|
bin/hledger -f - print
|
|
<<<
|
|
2010/1/1 x
|
|
a 2 @@ $2
|
|
b
|
|
|
|
>>>
|
|
2010/01/01 x
|
|
a 2 @@ $2
|
|
b -2 @@ $2
|
|
|