all repos

clerk @ e3c8c08

missing tooling for ledger/hledger

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

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
syntax: respect commodity format; =*; ===; :=, 2 months 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
        Decimal: "."
22
      BalanceAssertion j:2:11-3:0
23
        IsStrict: false
24
        IsInclusive: true
25
        IsAssignment: false
26
        Amount j:2:14-3:0
27
          Quantity: 100
28
          Commodity: "$" j:2:14-2:15
29
          CommodityPos: Before
30
          HasSpace: false
31
          Precision: 0
32
          Decimal: "."
33
    Posting j:3:1-4:1
34
      Account j:3:5-3:6
35
        SubAccount: "b" j:3:5-3:6
36
      Amount j:3:8-3:10
37
        Quantity: 2
38
        Commodity: "$" j:3:8-3:9
39
        CommodityPos: Before
40
        HasSpace: false
41
        Precision: 0
42
        Decimal: "."
43
      BalanceAssertion j:3:11-4:0
44
        IsStrict: false
45
        IsInclusive: true
46
        IsAssignment: false
47
        Amount j:3:13-4:0
48
          Quantity: 100
49
          Commodity: "$" j:3:13-3:14
50
          CommodityPos: Before
51
          HasSpace: false
52
          Precision: 0
53
          Decimal: "."
54
    Posting j:4:1-6:0
55
      Account j:4:5-4:6
56
        SubAccount: "c" j:4:5-4:6
57
      Amount j:4:8-4:10
58
        Quantity: 3
59
        Commodity: "$" j:4:8-4:9
60
        CommodityPos: Before
61
        HasSpace: false
62
        Precision: 0
63
        Decimal: "."
64
      BalanceAssertion j:4:11-5:0
65
        IsStrict: true
66
        IsInclusive: true
67
        IsAssignment: false
68
        Amount j:4:15-5:0
69
          Quantity: 100
70
          Commodity: "$" j:4:15-4:16
71
          CommodityPos: Before
72
          HasSpace: false
73
          Precision: 0
74
          Decimal: "."
75
  BlankLine j:6:0-6:1