budget/categories.yaml
Luís Murta 865874f637
Adds group configuration and bugfixes
Now possible to configure each group in the categories.yaml. Only color
added at this moment. The order in which the groups are listed is used
by the graph module and will later be used by the report.

Fixes search for vacations. The negative match is now done by groups,
and the key changes from negative_regex to not_in_groups.
Only updates transactions when any travel is assigned. Was previously
updating all uncategorized transactions that reached the travel search.

Regex match now correctly done lower letters to lower letters.

Transaction __repr__ method added and updated along with __str__, to
provide a more clearer output when manually categorizing.
2021-08-10 23:35:47 +01:00

91 lines
1.1 KiB
YAML

Groups:
income:
color: limegreen
fixed:
color: tab:blue
required:
color: tab:orange
health:
color: tab:red
discretionary:
color: tab:brown
Income1:
group: income
regex:
- company A
Income2:
group: income
regex:
- transfer
banks:
- BankA
Income3:
group: income
regex:
- company B
Commute:
group: required
regex:
- uber
regular:
- [train, 50]
Utilities:
group: fixed
regex:
- electricity
regular:
- [water]
- [internet, 30.5]
Groceries:
group: required
regex:
- lidl
- e.leclerc
- aldi
Eating Out:
group: discretionary
regex:
- restaurant 1
- restaurant 2
Entertainment:
group: discretionary
regex:
- cinema
- steam
Investment:
group: investment
Pets:
group: required
Medical:
group: health
regex:
- hospital
- pharmacy
Miscellaneous:
Travel:
group: discretionary
regex:
- ryanair
- easyjet
- airbnb
not_in_groups:
- income
- fixed
date_fmt: "%Y-%m-%d"
vacations:
- ["2019-12-23", "2020-01-02"]
- ["2020-07-01", "2020-07-30"]