# pub.solar finances This repository is used to track the finances of pub.solar transparently. We use [hledger](https://hledger.org/) to create finance report in a minimalistic, terminal friendly way. ### Finances report table

Income Statement 2023-01-01..2024-10-28

Commodity20232024Total
 
Revenues
01.201.20
415.001097.871512.87
87.00313.43400.43
total502.001412.501914.50
 
Expenses
52.40052.40
26.0248.2474.26
124.47460.54585.01
total202.89508.78711.67
 
Net:299.11903.721202.83
### Import new statements * place csv file into import directory * rename to `expenses.csv` for expenses or * rename to `donations-member.csv` for donations of members * rename to `donations-non-member.csv` for donations of non-members * execute `hledger import -f finances.hledger import/` ### Quick start how to use hledger Installing hledger with [nix](https://nixos.org/download), the package manager. ``` git clone gitea@git.pub.solar:pub-solar/finances.git finances && cd $_ nix develop ``` or with [direnv](https://github.com/nix-community/nix-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 --row-total \ | sed 's||\n|' \ | sed -i '/^