Skip to content

Commit 7bf6184

Browse files
committed
;doc:Query types: clarify amt: [#2396]
1 parent ba8cff0 commit 7bf6184

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hledger/hledger.m4.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5330,10 +5330,13 @@ This is the default query type, so we usually don't bother writing the "acct:" p
53305330
**`amt:N, amt:'<N', amt:'<=N', amt:'>N', amt:'>=N'`**\
53315331
Match postings with a single-commodity amount equal to, less than, or greater than N.
53325332
(Postings with multi-commodity amounts are not tested and will always match.)
5333+
`amt:` needs quotes to hide the less than/greater than sign from the command line shell.
5334+
53335335
The comparison has two modes:
53345336
if N is preceded by a + or - sign (or is 0), the two signed numbers are compared.
53355337
Otherwise, the absolute magnitudes are compared, ignoring sign.
5336-
`amt:` needs quotes to hide the less than/greater than sign from the command line shell.
5338+
5339+
Keep in mind that `amt:` matches posting amounts, not account balances.
53375340

53385341
### code: query
53395342
**`code:REGEX`**\

0 commit comments

Comments
 (0)