-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtackler.toml
312 lines (286 loc) · 8.82 KB
/
tackler.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
### Configuration settings for Tackler-NG
###
### The format of this file is TOML (https://toml.io/en/)
[kernel]
### Stric mode
###
### When this is true, then all accounts, commodities and tags
### must be predefined. If there is an undefined item,
### it's fatal halting error.
###
### Valid options are: true | false
strict = true
### Configuration Options for Timestamp
[kernel.timestamp]
### Default time value for timestamps
###
### This time value is used for timestamp if it's only
### on date granularity, e.g. "2024-11-15".
###
### See also "kernel.timestamp.timezone" and "report.report-timezone"
### about transaction timezones and txn timestamps on reports.
default-time = 00:00:00
### Default Timezone of Timestamp
[kernel.timestamp.timezone]
### Default timezone which is used with timestamp
### if it does not have timezone info.
###
### See also "report.report-timezone" about
### timestamp presentation on reports.
###
### Format is either zone's offset or name of ZoneID entry
### (IANA Time Zone Database), for example:
### name = "GMT", "UTC", "Europe/Helsinki"
### or
### offset = "+02:00",
###
### If timezone is offset, then timestamp is not adjusted based on
### daylight saving time.
###
### If timezone is zone name, then it is adjusted according
### the DST rules for that zone.
###
### offset = "+02:00"
### 2016-01-01T00:00:00 => 2016-01-01T00:00:00+02:00
### 2016-06-25T00:00:00 => 2016-06-25T00:00:00+02:00
###
### timezone = "Europe/Helsinki"
### 2016-01-01T00:00:00 => 2016-01-01T00:00:00+02:00
### 2016-06-25T00:00:00 => 2016-06-25T00:00:00+03:00
###
### It's an error to have both defined at the same time.
name = "Europe/Helsinki"
#offset = "-07:00"
### Settings related to audit features
[kernel.audit]
### Hash algorithm
###
### Supported hash algorithms are:
### SHA-256, SHA-512/256, SHA-512
### SHA3-256, SHA3-512
hash = "SHA-256"
### Audit mode
###
### This turns audit mode on or off.
### When audit mode is on,
### then also strict checking is on.
### See "kernel.strict"
###
### Valid options are: true | false
### CLI: --audit.mode
mode = true
### Transaction Input Configuration
[kernel.input]
### Type of input storage system
###
### Valid options are: "fs" | "git"
storage = "fs"
### Filesystem based input storage
[kernel.input.fs]
### Top-level directory of storage tree
###
### This is the top level location of txn shard structure,
### the scanning is started from here.
###
### If the directory path is relative, then it's based on this file.
### In case of CLI option, it's relative to the current working directory.
###
### CLI: --input.fs.dir
dir = "tackler/txns"
### Filename suffix
###
### This is transaction file extension, e.g. all files with
### this suffix are included into input.
###
### CLI: --input.fs.ext
suffix = "txn"
### Git SCM based input storage
[kernel.input.git]
### Path to git repository
###
### This must point to "bare" section of repository, e.g.
### * to the bare git repository `git clone --bare`
### or
### * to '.git'-directory inside the normal working tree (clone)
###
### If the repository path is relative, then it's based on this file.
### In case of CLI option, it's relative to the current working directory.
###
### It's possible to have 'kernel.input.fs.dir' pointing working tree,
### and at the same time 'kernel.input.git.repository' to point '.git'
### directory inside that same working tree. Then used storage could be
### selected by 'kernel.input.storage'
###
### CLI: --input.git.repo
repository = "tackler-data.git"
### Git reference name
###
### This is git reference name (ref or symbolic ref). It is used
### to define branch or tag to find transaction data.
### HEAD revision is automatically used for that branch.
###
### This could be a branch or tag name:
### "main", "cleared", "Y2024", etc.
### See git's documentation for further information about git references.
###
### CLI: --input.git.ref
ref = "main"
### Txn directory inside the repository
###
### This the directory inside git repository where transactions are stored.
### This is a filesystem path "inside repository" and working copy,
### and it is relative to the top of repository (and working copy) root.
###
### CLI: --input.git.dir
dir = "txns"
### Suffix of file names which are processed as transactions.
suffix = "txn"
############################################################################
### Transaction Data Configuration
###
### See the actual files for information about the content
[transaction.accounts]
### Path to accounts data
###
### If the path is relative, then it's based on this file.
###
### Set the value to string "none", to disable the Chart of Accounts.
path = "tackler/conf/accounts.toml"
[transaction.commodities]
### Path to commodities data
###
### If the path is relative, then it's based on this file.
###
### Set the value to string "none", to disable the Chart of Commodities,
### in that case, empty commodities are allowed by default.
path = "tackler/conf/commodities.toml"
[transaction.tags]
### Path to tags data
###
### If the path is relative, then it's based on this file.
###
### Set the value to string "none", to disable the Chart of Tags
path = "tackler/conf/tags.toml"
############################################################################
### Report Configuration
[report]
### Timezone setting for reports
###
### The dates, times and timestamps are displayd on
### this time zone on reports. The timezone info is
### dropped from dates and timestamps, but Report's active
### timezone is printed in the metadata section.
###
### Valid options are: name of IANA Time Zone Database entry (ZoneID)
### For example:
### "GMT", "UTC", "Europe/Helsinki"
report-timezone = "Europe/Helsinki"
### Reports to generate
###
### This is a list of report targets to generate.
###
### Valid options are: "balance", "balance-group", "register"
### CLI: --reports
targets = [ "balance", "balance-group", "register" ]
### Account selector for Reports and Exports
###
### This is default, global list of report accounts. It can be
### overriden by CLI option and by per report target settings.
###
### Each entry is regexp which is matched with account name
### Empty list will include everything
###
### Valid values: list of regex as string
###
### For example:
### Income and Expenses accounts
### accounts = [ "^Income(:.*)?", "^Expenses(:.*)?" ]
### All accounts
### accounts = [ ]
###
### CLI: --accounts <regexp1> <regexp2> ...
### All: --accounts ""
accounts = [ ]
### Scale Settings for Reports
###
### This is the numbers of decimals to be printed
###
###
### Scale is amount of decimals printed with values.
### Founding mode is HALF_UP / Midpoint Away From Zero
### For example:
### decimals: 123456789
### value: 0.000123456
### is printed with
### scale.max = 6 as 0.000123
### scale.max = 7 as 0.0001235
###
### min can't be negative or bigger than max value
### max can't be negative or smaller than min value
### Maximum value of min and max is 28 decimals.
scale = { min = 2, max = 7 }
### Balance Report
[report.balance]
### Report title
title = "Balance Report"
### Account selector for Balance Report
###
### If set, this will override 'report.accounts'
### See 'report.accounts' for further info.
#accounts = [ ]
### Balance Group Report
[report.balance-group]
title = "Balance Group Report"
### Group by criteria
###
### Group by balances based on selected criteria.
###
### Valid options are:
### "year", "month", "date", "iso-week", "iso-week-date"
###
### CLI: --groub-by
group-by = "month"
### Account selector for Balance Group Report
###
### If set, this will override 'report.accounts'
### See 'report.accounts' for further info.
# accounts = [ ]
### Register Report
[report.register]
### Report title
title = "Register Report"
### Timestamp style
###
### This optional setting controls how timestamps are
### displayed with register report. Default is "date".
### See also 'kernel.timestamp.timezone'
### and 'report.report-timezone' settings.
###
### Valid values are: date, seconds, full
### date: only date part is displayed (this is default)
### seconds: date and time is displayed (up to seconds)
### full: date and time is displayed (up to nanoseconds)
timestamp-style = "seconds"
### Account selector for Register Report
###
### If set, this will override 'report.accounts'
### See 'report.accounts' for further info.
# accounts = [ ]
############################################################################
### Export Configuration
[export]
### Equity Export
[export.equity]
# Account name of Equity txn's target account
equity-account = "Equity:Balance"
### Account selector for Register Report
###
### If set, this will override 'report.accounts'
### See 'report.accounts' for further info.
# accounts = [ ]
###
### Identity
###
### There are no configuration options for identity export
###
############################################################################