simonmichael / hledger_site

The repo for hledger.org, the hledger project's website.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in account type

edkedk99 opened this issue · comments

Expense account type should be singular here

Reproduce error

Save the example in a journal file and run hledger stats

account assets       ; type:Asset
account liabilities  ; type:Liability
account equity       ; type:Equity
account revenues     ; type:Revenue
account expenses     ; type:Expenses

Result

5 | account expenses     ; type:Expenses
  | ^
invalid account type code Expenses, should be one of A, L, E, R, X, ASSET, LIABILITY, EQUITY, REVENUE, EXPENSE

Correction

Change 'type:Expenses' to 'type:Expense'

Result

Included files           : 
Transactions span        :  to  (0 days)
Last transaction         : none
Transactions             : 0 (0.0 per day)
Transactions last 30 days: 0 (0.0 per day)
Transactions last 7 days : 0 (0.0 per day)
Payees/descriptions      : 0
Accounts                 : 0 (depth 0)
Commodities              : 0 ()
Market prices            : 0 ()

Fixed, thank you.