|
||
---|---|---|
.envrc | ||
.gitignore | ||
finances.hledger | ||
flake.lock | ||
flake.nix | ||
README.md |
pub.solar finances
This repository is used to track the finances of pub.solar transparently. We use hledger to create finance report in a minimalistic, terminal friendly way.
Finances report table
Income Statement 2023-01-01..2024-12-31 | |||
---|---|---|---|
Commodity | 2023 | 2024 | |
Revenues | |||
donations:member | € | 415.00 | 90.00 |
donations:non-member | € | 87.00 | 10.00 |
total | € | 502.00 | 100.00 |
Expenses | |||
infra:domain | € | 52.40 | 0 |
infra:file-storage | € | 26.02 | 2.24 |
infra:server | € | 124.47 | 44.03 |
total | € | 202.89 | 46.27 |
Net: | € | 299.11 | 53.73 |
Quick start how to use hledger
Installing hledger with nix, the package manager.
git clone gitea@git.pub.solar:pub-solar/finances.git finances && cd $_
nix develop
or with direnv.
git clone gitea@git.pub.solar:pub-solar/finances.git finances && cd $_
direnv allow
Creating a report without negative numbers
hledger incomestatement --file ./finances.hledger --layout bare --pretty --drop 1
Creating a web report, viewable in a browser
hledger-web --file ./finances.hledger
Writing a HTML table to the README
hledger incomestatement --file ./finances.hledger --layout bare --pretty --drop 1 --output-format html --yearly >> README.md