all repos

clerk @ a84ac41

missing tooling for ledger/hledger

clerk/journal/parser/testdata/virtual_postings_with_statuses.golden (view raw)

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
parser: separate account names by :, 1 month ago
1
Journal
2
  Transaction j:1:1-5:0
3
    Date: 2024/01/01
4
    Payee: "test" j:1:12-2:0
5
    Posting j:2:1-3:1
6
      Type: unbalanced virtual
7
      Status: "!"
8
      Account j:2:6-2:17
9
        SubAccount: "assets" j:2:6-2:12
10
        SubAccount: "cash" j:2:13-2:17
11
      Amount j:2:20-2:20
12
        Quantity: 10
13
        Commodity: "$"
14
        CommodityPos: Before
15
        HasSpace: false
16
        Precision: 0
17
        Decimal: "."
18
    Posting j:3:1-5:0
19
      Type: unbalanced virtual
20
      Account j:3:4-3:15
21
        SubAccount: "income" j:3:4-3:10
22
        SubAccount: "gift" j:3:11-3:15
23
      Amount j:3:18-3:18
24
        Quantity: -10
25
        Commodity: "$"
26
        CommodityPos: Before
27
        HasSpace: false
28
        Precision: 0
29
        Decimal: "."
30
  BlankLine j:5:0-5:1
31
  Transaction j:5:1-9:0
32
    Date: 2024/01/01
33
    Payee: "test" j:5:12-6:0
34
    Posting j:6:1-7:1
35
      Type: unbalanced virtual
36
      Status: "!"
37
      Account j:6:8-6:19
38
        SubAccount: "assets" j:6:8-6:14
39
        SubAccount: "cash" j:6:15-6:19
40
      Amount j:6:22-6:22
41
        Quantity: 10
42
        Commodity: "$"
43
        CommodityPos: Before
44
        HasSpace: false
45
        Precision: 0
46
        Decimal: "."
47
    Posting j:7:1-9:0
48
      Type: unbalanced virtual
49
      Account j:7:6-7:17
50
        SubAccount: "income" j:7:6-7:12
51
        SubAccount: "gift" j:7:13-7:17
52
      Amount j:7:20-7:20
53
        Quantity: -10
54
        Commodity: "$"
55
        CommodityPos: Before
56
        HasSpace: false
57
        Precision: 0
58
        Decimal: "."
59
  BlankLine j:9:0-9:1
60
  Transaction j:9:1-12:1
61
    Date: 2024/01/01
62
    Payee: "test" j:9:12-10:0
63
    Posting j:10:1-11:1
64
      Type: unbalanced virtual
65
      Status: "!"
66
      Account j:10:10-10:21
67
        SubAccount: "assets" j:10:10-10:16
68
        SubAccount: "cash" j:10:17-10:21
69
      Amount j:10:24-10:24
70
        Quantity: 10
71
        Commodity: "$"
72
        CommodityPos: Before
73
        HasSpace: false
74
        Precision: 0
75
        Decimal: "."
76
    Posting j:11:1-12:1
77
      Type: unbalanced virtual
78
      Status: "*"
79
      Account j:11:8-11:19
80
        SubAccount: "income" j:11:8-11:14
81
        SubAccount: "gift" j:11:15-11:19
82
      Amount j:11:22-11:22
83
        Quantity: -10
84
        Commodity: "$"
85
        CommodityPos: Before
86
        HasSpace: false
87
        Precision: 0
88
        Decimal: "."