From 96eb5fe19fcbe46ca5fb9cf06c9460e226b5dcd7 Mon Sep 17 00:00:00 2001 From: Enrico Lamperti <910672+elamperti@users.noreply.github.com> Date: Fri, 15 Nov 2019 03:06:55 -0300 Subject: Add note regarding $account under --strict or --pedantic modes This change adds a warning in the documentation for users using automated transactions with `--strict` or `--pedantic`, as ledger will throw an error when `$account` is not defined explicitly (see #545). --- doc/ledger3.texi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc') diff --git a/doc/ledger3.texi b/doc/ledger3.texi index f5446cf5..6a39c963 100644 --- a/doc/ledger3.texi +++ b/doc/ledger3.texi @@ -3889,6 +3889,12 @@ Becomes: Assets:Cash $-20.00 @end smallexample +Keep in mind that if you are using @option{--strict} or @option{--pedantic} you will have to explicitly define an account @samp{$account} to avoid errors. + +@smallexample @c input:validate +account $account +@end smallexample + @node Applying metadata to every matched posting, Applying metadata to the generated posting, Referring to the matching posting's account, Automated Transactions @subsection Applying metadata to every matched posting -- cgit v1.2.3