finances/README.md
2023-12-15 22:01:00 +01:00

2.9 KiB

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.

Quick start

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 -O html >> README.md

Finances report table

Income Statement 2023-01-10..2023-12-19

Commodity2023-01-10..2023-12-19
 
Revenues
donations:member365.00
donations:non-member87.00
total452.00
 
Expenses
infra:domain52.40
infra:file-storage26.02
infra:server124.47
total202.89
 
Net:249.11