all repos

clerk @ e2e9e2b27783c07fe5724268bf7ae828b3aacac7

missing tooling for ledger/hledger

clerk/journal/parser/testdata/transaction_with_header_comment.txtar (view raw)

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
tests: switch to txtar, 3 days ago
1
-- input --
2
2024/01/01 groceries
3
	; header comment
4
	expenses:food  $10.00
5
	assets:checking
6
-- expect --
7
Journal
8
  Transaction j:1:1-5:1
9
    Date: 2024/01/01
10
    Payee: "groceries" j:1:12-2:0
11
    HeaderComments j:1:1-5:1
12
      Comment j:2:2-3:1
13
        Marker: ";"
14
        Text: "header comment"
15
    Posting j:3:1-4:1
16
      Account j:3:2-3:15
17
        SubAccount: "expenses" j:3:2-3:10
18
        SubAccount: "food" j:3:11-3:15
19
      Amount j:3:17-3:17
20
        Quantity: 10
21
        Commodity: "$"
22
        CommodityPos: Before
23
        HasSpace: false
24
        Precision: 2
25
        Decimal: "."
26
    Posting j:4:1-5:1
27
      Account j:4:2-5:0
28
        SubAccount: "assets" j:4:2-4:8
29
        SubAccount: "checking" j:4:9-5:0
30
      Amount: <elided>