all repos

clerk @ cb14fd1f70ffde11a56b98a07cebd7091dff1d83

missing tooling for ledger/hledger

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

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
lexer & parser & ast..., 14 days ago
1
Journal
2
  BlankLine j:2:0-2:1
3
  PeriodicTransaction j:2:1-2:3
4
    Period: "monthly"
5
    Posting j:3:1-4:1
6
      Account "expenses:rent" j:3:5-3:18
7
      Amount j:3:28-3:28
8
        Quantity: 2000
9
        Commodity: "$"
10
        CommodityPos: Before
11
        HasSpace: false
12
        Precision: 0
13
        Decimal: "."
14
    Posting j:4:1-6:0
15
      Account "assets:bank:checking" j:4:5-5:0
16
      Amount: <elided>
17
  BlankLine j:6:0-6:1
18
  PeriodicTransaction j:6:1-6:3
19
    Period: "monthly from 2023-04-15 to 2023-06-16"
20
    From: 2023-04-15
21
    To: 2023-06-16
22
    Posting j:7:1-8:1
23
      Account "expenses:utilities" j:7:5-7:23
24
      Amount j:7:33-7:33
25
        Quantity: 400
26
        Commodity: "$"
27
        CommodityPos: Before
28
        HasSpace: false
29
        Precision: 0
30
        Decimal: "."
31
    Posting j:8:1-10:0
32
      Account "assets:bank:checking" j:8:5-9:0
33
      Amount: <elided>
34
  BlankLine j:10:0-10:1
35
  PeriodicTransaction j:10:1-10:3
36
    Period: "every 2 months"
37
    Description: "in 2023, we will review"
38
    Posting j:11:1-12:1
39
      Account "expenses:utilities" j:11:5-11:23
40
      Amount j:11:33-11:33
41
        Quantity: 400
42
        Commodity: "$"
43
        CommodityPos: Before
44
        HasSpace: false
45
        Precision: 0
46
        Decimal: "."
47
    Posting j:12:1-14:0
48
      Account "assets:bank:checking" j:12:5-13:0
49
      Amount: <elided>
50
  BlankLine j:14:0-14:1
51
  PeriodicTransaction j:14:1-14:3
52
    Period: "monthly"
53
    Description: "Next year blah blah"
54
    Posting j:15:1-16:1
55
      Account "expenses:food" j:15:5-15:18
56
      Amount j:15:20-15:20
57
        Quantity: 100
58
        Commodity: "$"
59
        CommodityPos: Before
60
        HasSpace: false
61
        Precision: 0
62
        Decimal: "."
63
    Posting j:16:1-18:0
64
      Account "assets:checking" j:16:5-17:0
65
      Amount: <elided>
66
  BlankLine j:18:0-18:1
67
  PeriodicTransaction j:18:1-18:3
68
    Period: "monthly from 2018/6"
69
    Comment j:18:23-19:0
70
      Marker: ";"
71
      Text: "In 2019 we will change this"
72
    Posting j:19:1-20:1
73
      Account "expenses:food" j:19:5-19:18
74
      Amount j:19:20-19:20
75
        Quantity: 100
76
        Commodity: "$"
77
        CommodityPos: Before
78
        HasSpace: false
79
        Precision: 0
80
        Decimal: "."
81
    Posting j:20:1-21:1
82
      Account "assets:checking" j:20:5-21:0
83
      Amount: <elided>