Debian Codegraph @

Hledger/Cli/Commands/Codes.txt

raw
1 codes
2
3 List the codes seen in transactions, in the order parsed.
4
5 Flags:
6 no command-specific flags
7
8 This command prints the value of each transaction's code field, in the
9 order transactions were parsed. The transaction code is an optional
10 value written in parentheses between the date and description, often
11 used to store a cheque number, order number or similar.
12
13 Transactions aren't required to have a code, and missing or empty codes
14 will not be shown by default. With the -E/--empty flag, they will be
15 printed as blank lines.
16
17 You can add a query to select a subset of transactions.
18
19 Examples:
20
21 2022/1/1 (123) Supermarket
22 Food $5.00
23 Checking
24
25 2022/1/2 (124) Post Office
26 Postage $8.32
27 Checking
28
29 2022/1/3 Supermarket
30 Food $11.23
31 Checking
32
33 2022/1/4 (126) Post Office
34 Postage $3.21
35 Checking
36
37 $ hledger codes
38 123
39 124
40 126
41
42 $ hledger codes -E
43 123
44 124
45
46 126