# 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