mikekchar / ledger-currencies

A ledger-cli tutorial to show how to deal with multiple currency transactions
53 stars 6 forks source link

wrong file called in 3.ledger example #1

Closed mgass closed 6 years ago

mgass commented 8 years ago

beginning at line 86 in 3.ledger, the example command calls 2.ledger:

; Let run this report in JPY: ; ledger -f 2.ledger -X JPY bal

; Wait... That doesn't seem right. It doesn't balance! ; There is a balance of 300 JPY left over. Why?

I believe that the balance command should call 3.ledger, the file that includes lot prices. Correct me if I'm wrong. Using 2.ledger, which has no lot prices, shows no remainder/capital gains. Replacing the 2.ledger with 3.ledger produces the balance of 300 JPY refer to on line 90.

Your tutorial helped me. I'm grateful I came across it.

mikekchar commented 8 years ago

You are right! Thanks. I haven't looked at these in a long time. I'll fix it :-)