From 02307c5369d1d99da31bfd090a88736b4c5bfc86 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 4 Feb 2023 11:29:48 -1000 Subject: [PATCH] ;doc: journal: cheatsheet: clarify date tag --- hledger/hledger.m4.md | 12 +++++++----- hledger/test/ledger-compat/syntax/hledger-main.test | 12 +++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index b1740c5cb..9ba150a45 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -834,13 +834,15 @@ P 2022-01-01 AAAA $1.40 expenses:tax:us:2021 $500 ; plus means added to this account (debit) ; revenue/expense categories are also "accounts" -2022-01-01 Whole Foods | payee name and description can be separated by a pipe char +2022-01-01 Whole Foods | payee name and description can be separated by a pipe char ; tag1: ; Transaction or posting comments can contain searchable tags, ; written NAME: or NAME:VALUE (value ends at comma or end of line). - ; Here's tag1:with a value, and an empty tag2: - ; A few tags have special meaning. A "date:" tag on a posting adjusts its date. - assets:checking $-50 ; date:2022-01-03, checking cleared two days later - expenses:food + ; There's tag1 above with an empty value, and here's tag2:with a five word value + expenses:food $50 + assets:checking $-50 + ; A few tags have special meaning. + ; A "date" tag on a posting adjusts its date. (Doesn't affect the transaction date). + ; date:2022-01-03, the checking posting cleared two days later. 2022-01-01 ; The description is optional. ; Any currency/commodity symbols are allowed, on either side. diff --git a/hledger/test/ledger-compat/syntax/hledger-main.test b/hledger/test/ledger-compat/syntax/hledger-main.test index 65905e34c..de0485f64 100644 --- a/hledger/test/ledger-compat/syntax/hledger-main.test +++ b/hledger/test/ledger-compat/syntax/hledger-main.test @@ -62,13 +62,15 @@ P 2022-01-01 AAAA $1.40 expenses:tax:us:2021 $500 ; plus means added to this account (debit) ; revenue/expense categories are also "accounts" -2022-01-01 Whole Foods | payee name and description can be separated by a pipe char +2022-01-01 Whole Foods | payee name and description can be separated by a pipe char ; tag1: ; Transaction or posting comments can contain searchable tags, ; written NAME: or NAME:VALUE (value ends at comma or end of line). - ; Here's tag1:with a value, and an empty tag2: - ; A few tags have special meaning. A "date:" tag on a posting adjusts its date. - assets:checking $-50 ; date:2022-01-03, checking cleared two days later - expenses:food + ; There's tag1 above with an empty value, and here's tag2:with a five word value + expenses:food $50 + assets:checking $-50 + ; A few tags have special meaning. + ; A "date" tag on a posting adjusts its date. (Doesn't affect the transaction date). + ; date:2022-01-03, the checking posting cleared two days later. 2022-01-01 ; The description is optional. ; Any currency/commodity symbols are allowed, on either side.