Update finances to 22.05.2024: update README, too

This commit is contained in:
teutat3s 2024-05-23 11:15:11 +02:00
parent 2a103e7554
commit 6cc94618f9
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -10,7 +10,7 @@ way.
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="5" style="text-align:left"><h2>Income Statement 2023-01-01..2024-12-31</h2></th></tr><tr><th></th><th>Commodity</th><th>2023</th><th>2024</th><th>Total</th></tr><tr><td colspan="5">&nbsp;</td></tr><tr><th colspan="5" 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">415.00</td><td class="amount" style="text-align:right">390.00</td><td class="amount rowtotal" style="text-align:right">805.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">87.00</td><td class="amount" style="text-align:right">74.43</td><td class="amount rowtotal" style="text-align:right">161.43</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">502.00</th><th class="amount coltotal" style="text-align:right">464.43</th><th class="amount coltotal" style="text-align:right">966.43</th></tr><tr><td colspan="5">&nbsp;</td></tr><tr><th colspan="5" 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><td class="amount" style="text-align:right">0</td><td class="amount rowtotal" 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><td class="amount" style="text-align:right">11.77</td><td class="amount rowtotal" style="text-align:right">37.79</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">124.47</td><td class="amount" style="text-align:right">91.87</td><td class="amount rowtotal" style="text-align:right">216.34</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">202.89</th><th class="amount coltotal" style="text-align:right">103.64</th><th class="amount coltotal" style="text-align:right">306.53</th></tr><tr><td colspan="5">&nbsp;</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">299.11</th><th class="amount coltotal" style="text-align:right">360.79</th><th class="amount coltotal" style="text-align:right">659.90</th></tr></table>
</style><link rel="stylesheet" href="hledger.css"><table><tr><th colspan="5" style="text-align:left"><h2>Income Statement 2023-01-01..2024-12-31</h2></th></tr><tr><th></th><th>Commodity</th><th>2023</th><th>2024</th><th>Total</th></tr><tr><td colspan="5">&nbsp;</td></tr><tr><th colspan="5" 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">415.00</td><td class="amount" style="text-align:right">422.87</td><td class="amount rowtotal" style="text-align:right">837.87</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">87.00</td><td class="amount" style="text-align:right">119.43</td><td class="amount rowtotal" style="text-align:right">206.43</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">502.00</th><th class="amount coltotal" style="text-align:right">542.30</th><th class="amount coltotal" style="text-align:right">1044.30</th></tr><tr><td colspan="5">&nbsp;</td></tr><tr><th colspan="5" 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><td class="amount" style="text-align:right">0</td><td class="amount rowtotal" 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><td class="amount" style="text-align:right">23.44</td><td class="amount rowtotal" style="text-align:right">49.46</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">124.47</td><td class="amount" style="text-align:right">162.20</td><td class="amount rowtotal" style="text-align:right">286.67</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">202.89</th><th class="amount coltotal" style="text-align:right">185.64</th><th class="amount coltotal" style="text-align:right">388.53</th></tr><tr><td colspan="5">&nbsp;</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">299.11</th><th class="amount coltotal" style="text-align:right">356.66</th><th class="amount coltotal" style="text-align:right">655.77</th></tr></table>
### Import new statements
@ -48,6 +48,10 @@ 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 -i '8r /dev/stdin' README.md
sed -i '14,17d' README.md
hledger incomestatement --file ./finances.hledger --layout bare --pretty --drop 1 --output-format html --yearly --row-total \
| sed 's|</table>|</table>\n|' \
| sed -i '/^<style>/,/^<\/style>/{
r /dev/stdin
d
}' README.md
```