Like ledger, price amounts are now "unobserved", ie their precision does not affect the canonical display precisions used when displaying amounts, and transaction balancing is done based on display precision, ie amounts are considered to balance if their sum appears to be zero when using the canonical display precision.
13 lines
166 B
Plaintext
13 lines
166 B
Plaintext
# a no-commodity amount with a price should work
|
|
bin/hledger -f - print
|
|
<<<
|
|
2010/1/1 x
|
|
a 1 @ $2
|
|
b
|
|
|
|
>>>
|
|
2010/01/01 x
|
|
a 1 @ $2
|
|
b -1 @ $2
|
|
|