all repos

clerk @ 1b9e6e1f8922a34b89b80ea1c5b55997326c3aa5

missing tooling for ledger/hledger

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

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
add support of subdirectives and it's highlights, 1 month ago
1
-- input --
2
2024-01-15 t
3
    a  $1 =* $100
4
    b  $2 =*$100
5
    c  $3 ==* $100
6
7
-- expect --
8
Journal
9
  Transaction j:1:1-6:0
10
    Date: 2024-01-15
11
    Payee: "t" j:1:12-2:0
12
    Posting j:2:1-3:1
13
      Account j:2:5-2:6
14
        SubAccount: "a" j:2:5-2:6
15
      Amount j:2:8-2:10
16
        Quantity: 1
17
        Commodity: "$" j:2:8-2:9
18
        CommodityPos: Before
19
        HasSpace: false
20
        Precision: 0
21
      BalanceAssertion j:2:11-3:0
22
        IsStrict: false
23
        IsInclusive: true
24
        IsAssignment: false
25
        Amount j:2:14-3:0
26
          Quantity: 100
27
          Commodity: "$" j:2:14-2:15
28
          CommodityPos: Before
29
          HasSpace: false
30
          Precision: 0
31
    Posting j:3:1-4:1
32
      Account j:3:5-3:6
33
        SubAccount: "b" j:3:5-3:6
34
      Amount j:3:8-3:10
35
        Quantity: 2
36
        Commodity: "$" j:3:8-3:9
37
        CommodityPos: Before
38
        HasSpace: false
39
        Precision: 0
40
      BalanceAssertion j:3:11-4:0
41
        IsStrict: false
42
        IsInclusive: true
43
        IsAssignment: false
44
        Amount j:3:13-4:0
45
          Quantity: 100
46
          Commodity: "$" j:3:13-3:14
47
          CommodityPos: Before
48
          HasSpace: false
49
          Precision: 0
50
    Posting j:4:1-6:0
51
      Account j:4:5-4:6
52
        SubAccount: "c" j:4:5-4:6
53
      Amount j:4:8-4:10
54
        Quantity: 3
55
        Commodity: "$" j:4:8-4:9
56
        CommodityPos: Before
57
        HasSpace: false
58
        Precision: 0
59
      BalanceAssertion j:4:11-5:0
60
        IsStrict: true
61
        IsInclusive: true
62
        IsAssignment: false
63
        Amount j:4:15-5:0
64
          Quantity: 100
65
          Commodity: "$" j:4:15-4:16
66
          CommodityPos: Before
67
          HasSpace: false
68
          Precision: 0
69
  BlankLine j:6:0-6:1