From b9570185369805ad93d6ae72901ef3bc9b91ef9d Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 24 Aug 2021 10:05:18 -1000 Subject: [PATCH] ;doc: close: simpler clopen: tag --- hledger/Hledger/Cli/Commands/Close.md | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/hledger/Hledger/Cli/Commands/Close.md b/hledger/Hledger/Cli/Commands/Close.md index 5b54a9f2a..ae1981772 100644 --- a/hledger/Hledger/Cli/Commands/Close.md +++ b/hledger/Hledger/Cli/Commands/Close.md @@ -106,19 +106,19 @@ add more easily-matched tags to opening/closing transactions, like this: ; 2019.journal 2019-01-01 opening balances ; earliest opening txn, no tag here ... -2019-12-31 closing balances ; close:2019 +2019-12-31 closing balances ; clopen:2020 ... ``` ```journal ; 2020.journal -2020-01-01 opening balances ; open:2020 +2020-01-01 opening balances ; clopen:2020 ... -2020-12-31 closing balances ; close:2020 +2020-12-31 closing balances ; clopen:2021 ... ``` ```journal ; 2021.journal -2021-01-01 opening balances ; open:2021 +2021-01-01 opening balances ; clopen:2021 ... ``` @@ -131,15 +131,12 @@ include 2021.journal ``` you could do eg: ```shell -$ hledger -f all.journal reg -H checking not:tag:'open|close' +$ hledger -f all.journal reg -H checking not:tag:clopen # all years checking register, hiding non-essential opening/closing txns -$ hledger -f all.journal bs -p 2020 not:tag:close=2020 +$ hledger -f all.journal bs -p 2020 not:tag:clopen=2020 # 2020 year end balances, suppressing 2020 closing txn -$ hledger -f 2020.journal bs not:tag:close - # 2020 year end balances, easier case - ``` ### close and balance assertions