I'm not sure if I'm doing the right thing, but I think I've found a problem. I'm trying to use a currency trading account like this:
2017-01-07 buy food
expenses:food 20 usd @ 1.30 cad
assets:usd -20 usd
income:currency
2017/01/07 buy food
expenses:food 20 usd @ 1.30 cad
assets:usd -20 usd
-26.00 cad
income:currency 20 usd
"txnidx","date","date2","status","code","description","comment","account","amount","commodity","credit","debit","status","posting-comment"
"1","2017/01/07","","","","buy food","","expenses:food","20 @ 1.30 cad","usd","","20 @ 1.30 cad","",""
"1","2017/01/07","","","","buy food","","assets:usd","-20","usd","20","","",""
"1","2017/01/07","","","","buy food","","income:currency","20","usd","","20","",""
"1","2017/01/07","","","","buy food","","income:currency","-26.00","cad","26.00","","",""
2017/01/07 buy food
expenses:food 20 usd @ 1.30 cad
assets:usd -20 usd
-26.00 cad -26.00 cad
income:currency 20 usd
This looks wrong.
I'm not sure if I'm doing the right thing, but I think I've found a problem. I'm trying to use a currency trading account like this:
hledger printyields:Using
hledger print -O csv, I can understand how this is meant:However, in this case
printis not idempotent. –hledger print | hledger -f- printyields:This looks wrong.