$ -140 SomeAsset
$ 140 SomeExpense
Just as the documentation mentions, I don't want the expense to be re-valuated to $140 on the fifth; I want it to remain $120, which was the price is $ at the time of the purchase. So, to quote the docs:
Or how about never re-valuating commodities used in Expenses, since they cannot have a different future value:= /^Expenses:/; VALUE:: market(amount, post.date, exchange)
This says the future valuation is the same as the valuation at the time of posting. post.date equals the posting’s date, while just ’date’ is the value of --now DATE (defaults to today).
$ -140 SomeAsset
$ 12000 SomeExpense
You received this message because you are subscribed to a topic in the Google Groups "Ledger" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ledger-cli/dc6F-HvZOyE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ledger-cli+...@googlegroups.com.
I spend money in two currencies, as I line and work in two places. I don't want expenses in any of these to be revalued over time in terms of the other and I don't want ledger to report a capital gain on transactions between those two currencies. For this, the --historical flag makes perfect sense.
For actual investments, like my stock and my property, I very much want the opposite. These should be revalued over time and there's a clean capital gain/loss on every such transaction.
The section in the docs called "complete control over commodity prices" (or something like that) lists a lot of different ways to work with this, many of which would solve my use case, but I can't get any of them to work as I don't seem to have understood the valuation-function and the market-function properly.