2023-10-31 19:06:24 +00:00
|
|
|
Quick start
|
|
|
|
```
|
|
|
|
nix shell latest#hledger latest#hledger-web
|
|
|
|
```
|
|
|
|
|
|
|
|
Report without negative numbers
|
|
|
|
```
|
2023-10-31 19:38:42 +00:00
|
|
|
hledger incomestatement --file ./finances.hledger --layout bare --pretty --drop 1
|
2023-10-31 19:06:24 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Web report for viewing it in a browser
|
|
|
|
```
|
|
|
|
hledger-web --file ./finances.hledger
|
|
|
|
```
|
2023-10-31 19:38:42 +00:00
|
|
|
|
|
|
|
Write HTML table to README
|
|
|
|
```
|
|
|
|
hledger incomestatement --file ./finances.hledger --layout bare --pretty --drop 1 -O html >> README.md
|
|
|
|
```
|
|
|
|
|
|
|
|
Test generated report table
|
|
|
|
<style>
|
|
|
|
td { padding:0 0.5em; }
|
|
|
|
td:nth-child(1) { white-space:nowrap; }
|
|
|
|
tr:nth-child(even) td { background-color:#eee; }
|
|
|
|
</style><link rel="stylesheet" href="hledger.css"><table><tr><th colspan="3" style="text-align:left"><h2>Income Statement 2023-01-10..2023-10-26</h2></th></tr><tr><th></th><th>Commodity</th><th>2023-01-10..2023-10-26</th></tr><tr><td colspan="3"> </td></tr><tr><th colspan="3" style="text-align:left">Revenues</th></tr><tr><td class="account" style="text-align:left">donations:member</td><td class="amount" style="text-align:right">€</td><td class="amount" style="text-align:right">195.00</td></tr><tr><td class="account" style="text-align:left">donations:non-member</td><td class="amount" style="text-align:right">€</td><td class="amount" style="text-align:right">72.00</td></tr><tr><th style="text-align:left">total</th><th class="amount coltotal" style="text-align:right">€</th><th class="amount coltotal" style="text-align:right">267.00</th></tr><tr><td colspan="3"> </td></tr><tr><th colspan="3" style="text-align:left">Expenses</th></tr><tr><td class="account" style="text-align:left">infra:domain</td><td class="amount" style="text-align:right">€</td><td class="amount" style="text-align:right">52.40</td></tr><tr><td class="account" style="text-align:left">infra:file-storage</td><td class="amount" style="text-align:right">€</td><td class="amount" style="text-align:right">26.02</td></tr><tr><td class="account" style="text-align:left">infra:server</td><td class="amount" style="text-align:right">€</td><td class="amount" style="text-align:right">40.22</td></tr><tr><th style="text-align:left">total</th><th class="amount coltotal" style="text-align:right">€</th><th class="amount coltotal" style="text-align:right">118.64</th></tr><tr><td colspan="3"> </td></tr><tr><th style="text-align:left">Net:</th><th class="amount coltotal" style="text-align:right">€</th><th class="amount coltotal" style="text-align:right">148.36</th></tr></table>
|