From 51bf8cbcccf9d0b2037363c34f054485996e2f5b Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 11 Oct 2018 16:16:33 -0700 Subject: [PATCH] docs: journal: account: a gotcha when changing builtin account types [ci skip] --- hledger-lib/hledger_journal.m4.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hledger-lib/hledger_journal.m4.md b/hledger-lib/hledger_journal.m4.md index f8f4bb632..a20a46e8d 100644 --- a/hledger-lib/hledger_journal.m4.md +++ b/hledger-lib/hledger_journal.m4.md @@ -846,6 +846,7 @@ This is useful for certain accounting-aware reports, in particular [balancesheet If you name your top-level accounts with some variation of `assets`, `liabilities`/`debts`, `equity`, `revenues`/`income`, or `expenses`, their types are detected automatically. + More generally, you can declare an account's type by adding one of the letters `ALERX` to its account directive, separated from the account name by two or more spaces. Eg: @@ -858,6 +859,18 @@ account revenues R account expenses X ``` +Note: if you ever override the types of those auto-detected english account names mentioned above, +you might need to help the reports a bit: +``` +; make "liabilities" not have the liability type, who knows why +account liabilities E + +; better ensure some other account has the liability type, +; otherwise balancesheet would still show "liabilities" under Liabilities +account - L +``` +) + #### Account comments An account directive can also have indented comments on following lines, eg: