2010-11-13 02:54:21 +03:00
|
|
|
# a default commodity defined with the D directive will be used for any
|
|
|
|
# commodity-less amounts in subsequent transactions.
|
|
|
|
#
|
|
|
|
bin/hledger -f- print
|
|
|
|
<<<
|
|
|
|
|
|
|
|
; no default commodity
|
|
|
|
2010/1/1 x
|
|
|
|
a 1000
|
|
|
|
b
|
|
|
|
|
2011-01-19 15:32:18 +03:00
|
|
|
; pound, two decimal places, no digit group separator
|
2010-11-13 02:54:21 +03:00
|
|
|
D £1000.00
|
|
|
|
|
|
|
|
2010/1/1 y
|
|
|
|
a 1000
|
|
|
|
b
|
|
|
|
|
2011-01-19 15:32:18 +03:00
|
|
|
; dollar, comma decimal point, three decimal places, no digit group separator
|
2010-11-13 02:54:21 +03:00
|
|
|
D $1,000
|
|
|
|
|
|
|
|
2010/1/1 z
|
|
|
|
a 1000
|
|
|
|
b
|
|
|
|
|
|
|
|
>>>
|
|
|
|
2010/01/01 x
|
|
|
|
a 1000
|
|
|
|
b -1000
|
|
|
|
|
|
|
|
2010/01/01 y
|
|
|
|
a £1000.00
|
|
|
|
b £-1000.00
|
|
|
|
|
|
|
|
2010/01/01 z
|
2011-01-19 15:32:18 +03:00
|
|
|
a $1000,000
|
|
|
|
b $-1000,000
|
2010-11-13 02:54:21 +03:00
|
|
|
|