Add a new account type Gain with single-letter code G as a subtype of Revenue, similar to how Cash is a subtype of Asset and Conversion is a subtype of Equity. This enables tracking capital gains/losses separately while still including them in income statements and close --retain. Usage: account revenues:capital ; type: G - type:G matches only Gain accounts - type:R matches both Revenue and Gain (subtype matching) - Auto-detection from account names matching: ^(income|revenue)s?:(capital[- ]?)?(gains?|loss(es)?)(:|$) e.g. income:gains, revenue:capital-gains, income:losses |
||
|---|---|---|
| .. | ||
| app | ||
| bench | ||
| embeddedfiles | ||
| Hledger | ||
| shell-completion | ||
| test | ||
| .date.m4 | ||
| .ghci | ||
| .version | ||
| .version.m4 | ||
| CHANGES.md | ||
| dir-entry.texi | ||
| hledger.1 | ||
| hledger.cabal | ||
| hledger.info | ||
| hledger.m4.md | ||
| hledger.txt | ||
| LICENSE | ||
| package.yaml | ||
| README.md | ||
| Setup.hs | ||
hledger
The command-line interface for the hledger accounting system. Its basic function is to read a plain text file describing financial transactions and produce useful reports.
See also: the project README and home page.