On Jul 5, 2010, at 12:06 PM, Martin Michlmayr wrote:
>> 2010/05/31 * (-) May Bill from Water Inc
>> expenses:utllities:water $100 (Bill: Water Inc) [may 2010]
>
> I don't think I've seen this (Bill: Water Inc) [may 2010] syntax
> before. Can you explain what it does?
You can annotate commodities in three ways, which may all be combined:
$100 {10 EUR} # Price paid for those $
$100 [2010/05/01] # Date when they were acquired
$100 (Note) # An arbitrary note to identify the 'lot'
These are all optional, and in fact Ledger auto-generates the first two
whenever it sees a commodity exchange take place. The only one that has
real meaning is the first. When you later exchange a commodity that has
a price annotation, the difference between annotated price and exchange
price will determine the capital gain/loss.
John