From f7a3f510bedd7d2904bc958b51414c59d5991b95 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 16 Jan 2022 08:24:30 -1000 Subject: [PATCH] ;doc: describe no-symbol commodity checking (#1772) --- hledger/hledger.m4.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index e2ba920c4..72f8867c6 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -2901,7 +2901,12 @@ can still be [overridden](#commodity-styles) by supplying a command line option. ### Commodity error checking In [strict mode], enabled with the `-s`/`--strict` flag, hledger will report an error if a -commodity symbol is used that has not been declared by a [`commodity` directive](#declaring-commodities). This works similarly to [account error checking](#account-error-checking), see the notes there for more details. +commodity symbol is used that has not been declared by a [`commodity` directive](#declaring-commodities). +This works similarly to [account error checking](#account-error-checking), see the notes there for more details. + +Note, this disallows amounts without a commodity symbol, +because currently it's not possible (?) to declare the "no-symbol" commodity with a directive. +This is one exception for convenience: zero amounts are always allowed to have no commodity symbol. ## Default commodity