hledger/hledger-lib/Hledger/Read
g. nicholas d'andrea e678e09704 feat: accounts: add Gain (G) account type as subtype of Revenue [#2522]
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
2026-01-08 19:18:13 -10:00
..
Common.hs imp:journal: fix a slight pessimisation of include directives 2025-12-10 19:21:59 -10:00
CsvReader.hs dev:Hledger.Utils.IO: readHandlePortably, readHandlePortably' -> hGetContentsPortably 2025-09-26 01:08:43 -10:00
InputOptions.hs feat: timeclock: Add support for multiple clocked in sessions (#2141) 2025-04-03 11:19:18 -10:00
JournalReader.hs feat: accounts: add Gain (G) account type as subtype of Revenue [#2522] 2026-01-08 19:18:13 -10:00
RulesReader.hs dev: switch all qualifed imports to ImportQualifiedPost style 2025-09-29 19:28:59 -10:00
TimeclockReader.hs dev:TimeclockReader, Timeclock: refactor/reindent [#2417] 2025-09-01 08:27:01 +01:00
TimedotReader.hs dev: switch all qualifed imports to ImportQualifiedPost style 2025-09-29 19:28:59 -10:00