Debian Codegraph @

tests/balance-assertion.beancount

raw
1 ;----------------------------------------------------------------------
2 ; ledger2beancount conversion notes:
3 ;
4 ; - Account Assets:wallet cash renamed to Assets:Wallet-cash
5 ; - Account Expenses:Food and drink renamed to Expenses:Food-and-drink
6 ;----------------------------------------------------------------------
7
8 ; SPDX-FileCopyrightText: © 2018 Martin Michlmayr <[email protected]>
9 ;
10 ; SPDX-License-Identifier: GPL-3.0-or-later
11
12 1970-01-01 open Assets:Test
13 1970-01-01 open Assets:Test2
14 1970-01-01 open Assets:Test3
15 1970-01-01 open Assets:Test4
16 1970-01-01 open Assets:Test5
17 1970-01-01 open Assets:Test6
18 1970-01-01 open Assets:Test7
19 1970-01-01 open Assets:Test8
20 1970-01-01 open Assets:Test9
21 1970-01-01 open Income:Test
22 1970-01-01 open Equity:Opening-Balance
23
24 1970-01-01 commodity EUR
25 1970-01-01 commodity USD
26
27 1970-01-01 open Assets:Cash
28 1970-01-01 open Assets:Test10
29 1970-01-01 open Assets:Test11
30 1970-01-01 open Assets:Wallet
31 1970-01-01 open Assets:Wallet-cash
32 1970-01-01 open Equity:Adjustments
33 1970-01-01 open Expenses:Drinks
34 1970-01-01 open Expenses:Food
35 1970-01-01 open Expenses:Food-and-drink
36 1970-01-01 open Expenses:Tips
37
38 1970-01-01 commodity GBP
39 1970-01-01 commodity THB
40
41 2018-03-23 * "Test 1"
42 Assets:Test 10.00 EUR
43 Equity:Opening-Balance -10.00 EUR
44
45 2018-03-24 balance Assets:Test 10.00 EUR
46
47 2018-03-24 * "Test 2"
48 Assets:Test 10.00 EUR
49 Equity:Opening-Balance -10.00 EUR
50
51 2018-03-25 balance Assets:Test 20.00 EUR
52 2018-03-25 balance Equity:Opening-Balance -20.00 EUR
53
54 2019-01-18 * "Assertion with commodity mapping"
55 Assets:Test2 10.00 USD
56 Equity:Opening-Balance -10.00 USD
57
58 2019-01-19 balance Assets:Test2 10.00 USD
59
60 2019-01-18 txn "KFC"
61 Expenses:Food 20.00 USD
62 Assets:Cash -20.00 USD
63
64 2019-01-19 balance Assets:Cash -20.00 USD
65
66 2019-01-19 txn "KFC"
67 Expenses:Food 20.00 USD
68 Expenses:Drinks 3.00 USD
69 Assets:Cash
70
71 2019-01-20 balance Assets:Cash -43.00 USD
72
73 ; account name needs mapping
74 2019-01-20 txn "KFC"
75 Expenses:Food-and-drink 20.00 USD
76 Expenses:Tips 3.00 USD
77 Assets:Wallet-cash
78
79 2019-01-21 balance Assets:Wallet-cash -23.00 USD
80
81 2019-01-21 pad Assets:Cash Equity:Adjustments
82 2019-01-22 balance Assets:Cash 500.00 USD
83
84 2019-01-25 * "Balance assertion with comment"
85 Assets:Test3 10.00 EUR ; comment
86 Equity:Opening-Balance -10.00 EUR
87
88 2019-01-26 balance Assets:Test3 10.00 EUR
89
90 2019-01-25 * "Balance assertion with tag"
91 Assets:Test4 10.00 EUR
92 tags: "foo"
93 Equity:Opening-Balance -10.00 EUR
94
95 2019-01-26 balance Assets:Test4 10.00 EUR
96
97 2019-01-29 * "Balance assertion with metadata"
98 Assets:Test5 10.00 EUR
99 foo: "bar"
100 Equity:Opening-Balance -10.00 EUR
101
102 2019-01-30 balance Assets:Test5 10.00 EUR
103
104 2019-01-29 pad Assets:Test6 Equity:Adjustments
105 2019-01-30 balance Assets:Test6 500.00 USD
106
107 2019-04-20 txn "Wallet"
108 Assets:Wallet 500.00 THB
109 Equity:Opening-Balance
110
111 2019-04-28 txn "Food"
112 Expenses:Food 10.00 THB
113 Assets:Wallet
114
115 2019-04-29 balance Assets:Wallet 490.00 THB
116
117 2020-02-15 txn "Specify amount"
118 Assets:Test7 20.00 EUR
119 Equity:Opening-Balance -20.00 EUR
120
121 2020-02-15 note Assets:Test7 "Balance assertion with 0 value"
122
123 2020-02-16 balance Assets:Test7 20.00 EUR
124
125 2020-02-15 txn "Specify amount"
126 Assets:Test8 30.00 EUR
127 Equity:Opening-Balance -30.00 EUR
128
129 2020-02-15 note Assets:Test8 "Balance assignment with a single posting"
130
131 2020-02-16 balance Assets:Test8 30.00 EUR
132
133 2020-02-15 note Assets:Test8 "Balance assignment with a single posting"
134
135 2020-02-16 balance Assets:Test8 30.00 EUR
136
137 2020-02-15 note Assets:Test8 "Balance assignment with a single posting"
138
139 2020-02-16 balance Assets:Test8 30.00 EUR
140
141 2020-02-15 note Assets:Test8 "Balance assignment with a single posting"
142
143 2020-02-16 balance Assets:Test8 30.00 EUR
144
145 2020-02-15 note Assets:Test8 "Balance assignment with a single posting"
146
147 2020-02-16 balance Assets:Test8 30.00 EUR
148
149 2020-02-15 txn "Specify amount"
150 Assets:Test9 40.00 EUR
151 Equity:Opening-Balance -40.00 EUR
152
153
154 2020-02-15 * "Balance assertion with a single posting - use bucket to balance"
155 Assets:Test9 5.00 EUR
156 Income:Test
157
158 2020-02-16 balance Assets:Test9 45.00 EUR
159
160 2020-06-22 * "Balance assignment with inline math"
161 Assets:Test10 1 GBP
162 Assets:Test11
163
164 2020-06-23 balance Assets:Test10 0.25+ 0.75 GBP
165