Debian Codegraph @

tests/tags.beancount

raw
1 ; Beancount: 2.1.0
2 ; SPDX-FileCopyrightText: © 2018 Martin Michlmayr <[email protected]>
3 ;
4 ; SPDX-License-Identifier: GPL-3.0-or-later
5
6 1970-01-01 open Assets:Test
7 1970-01-01 open Equity:Opening-Balance
8
9 1970-01-01 commodity EUR
10
11 2018-03-17 * "Tag on transaction"
12 #foo #bar #baz
13 Assets:Test 10.00 EUR
14 Equity:Opening-Balance -10.00 EUR
15
16 2018-03-17 * "Tag on transaction, split over two lines"
17 #foo #bar #baz
18 #second
19 Assets:Test 10.00 EUR
20 Equity:Opening-Balance -10.00 EUR
21
22 2018-03-17 * "Tag on transaction, one converted to a link"
23 #foo #bar ^2018-02-02-brussels-fosdem #baz
24 Assets:Test 10.00 EUR
25 Equity:Opening-Balance -10.00 EUR
26
27 2018-03-17 * "Tag on transaction, one link on posting level"
28 #foo #bar ^2018-02-02-brussels-fosdem #baz
29 Assets:Test 10.00 EUR
30 tags: "qux, quux, quuz"
31 links: "2018-03-08-london"
32 Equity:Opening-Balance -10.00 EUR
33
34 2018-03-17 * "Tag on postings"
35 #foo #bar #baz
36 Assets:Test 10.00 EUR
37 tags: "foo"
38 Equity:Opening-Balance -10.00 EUR
39 tags: "bar"
40
41 2018-03-31 * "Tag on postings, without indentation"
42 #foo #bar #baz
43 Assets:Test 10.00 EUR
44 tags: "qux"
45 links: "2018-03-08-london"
46 Equity:Opening-Balance -10.00 EUR
47 tags: "quux, quuz"
48
49 2018-05-23 * "Tag on postings, same line"
50 #foo #bar #baz
51 Assets:Test 10.00 EUR
52 tags: "qux"
53 links: "2018-03-08-london"
54 Equity:Opening-Balance -10.00 EUR
55 tags: "quux, quuz"
56
57 2018-05-23 * "Tag on postings, same and next line"
58 #foo #bar #baz
59 Assets:Test 10.00 EUR
60 tags: "qux, foo"
61 links: "2018-03-08-london"
62 Equity:Opening-Balance -10.00 EUR
63 tags: "quux, quuz"
64
65 ; This is not a tag; you need two spaces before the comment
66 2019-01-25 * "Just a payee description ; :foo:"
67 #bar #baz
68 Assets:Test 10.00 EUR
69 Equity:Opening-Balance -10.00 EUR
70
71 2019-01-25 * "Tag on same line as payee" #foo
72 #bar #baz
73 Assets:Test 10.00 EUR
74 Equity:Opening-Balance -10.00 EUR
75
76 2019-01-25 * "Tag on same line as payee" #foo
77 #bar #baz
78 Assets:Test 10.00 EUR
79 Equity:Opening-Balance -10.00 EUR
80
81 2019-01-25 * "Comment and tag on same line as payee" #foo ; comment
82 #bar #baz
83 Assets:Test 10.00 EUR
84 Equity:Opening-Balance -10.00 EUR
85
86 2020-08-06 * "Tag on same line as payee" #foo
87 Assets:Test 10.00 EUR
88 Assets:Test -10.00 EUR
89
90 2020-08-06 * "Tag on same line as payee" #foo
91 Assets:Test 10.00 EUR
92 Assets:Test -10.00 EUR
93
94 2020-08-06 * "Tag on same line as payee" #foo
95 Assets:Test 10.00 EUR
96 Assets:Test -10.00 EUR
97
98 2020-10-01 * "No space before tag"
99 Assets:Test 10.00 EUR
100 tags: "foo"
101 Assets:Test -10.00 EUR
102
103 2020-10-01 * "Many spaces before tag"
104 Assets:Test 10.00 EUR
105 tags: "foo"
106 Assets:Test -10.00 EUR
107
108 2020-10-01 * "Tab separated"
109 ; Comment
110 Assets:Test 10.00 EUR
111 tags: "foo"
112 Assets:Test -10.00 EUR
113
114 2020-10-01 * "Tab separated" #foo
115 Assets:Test 10.00 EUR
116 tags: "foo"
117 Assets:Test -10.00 EUR
118
119 2020-10-02 * "Inconsistent spacing: 4 for postings, 2 for tags"
120 #foo
121 Assets:Test 10.00 EUR
122 tags: "bar"
123 Assets:Test -10.00 EUR
124
125 2020-10-13 * "Tag on same line as payee, with auxdate" #foo
126 aux-date: 2020-10-11
127 Assets:Test 10.00 EUR
128 Assets:Test -10.00 EUR
129
130 2020-10-23 * "Comment spacing for comment after tag"
131 Assets:Test 10.00 EUR ; test
132 tags: "bar"
133 Equity:Opening-Balance -10.00 EUR ;test
134 tags: "bar"
135
136 2020-10-23 * "Comment spacing for comment after tag"
137 Assets:Test 10.00 EUR
138 ; test
139 tags: "bar"
140 Equity:Opening-Balance -10.00 EUR
141 ;test
142 tags: "bar"
143