Skip to content

The G account type is Gains but help text says Gain #2570

@wgslr

Description

@wgslr

Version: 1.52 and 1.99.1

The release notes and error text indicate the new account type is Gain but the accepted value in account directive is Gains.

This works:

echo 'account income:capital  ; type: G' | hledger print -f -

and this works:

echo 'account income:capital  ; type: Gains' | hledger print -f -

But this doesn't, even though the error mentions the "Gain" type:

$ echo 'account income:capital  ; type: Gain' | hledger print -f -
hledger: Error: -:1:1:
  |
1 | account income:capital             ; type: Gain
  | ^
invalid account type code Gain, should be one of A, L, E, R, X, C, V, G, Asset, Liability, Equity, Revenue, Expense, Cash, Conversion, Gain

P.S. I just downloaded the 1.99 version, lots tracking is very promising. Thanks for the good work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.affects4-manyAffects potentially a significant number of users.annoyance3-blockerNew user experience or installability bug. A potential user could fail to get started.investingRelated to investments, lots, capital gains, etc.journalThe journal file format, and its features.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions