Show total column in the README
This commit is contained in:
parent
b8eaccac1b
commit
fcce172f1c
|
@ -10,7 +10,7 @@ way.
|
||||||
td { padding:0 0.5em; }
|
td { padding:0 0.5em; }
|
||||||
td:nth-child(1) { white-space:nowrap; }
|
td:nth-child(1) { white-space:nowrap; }
|
||||||
tr:nth-child(even) td { background-color:#eee; }
|
tr:nth-child(even) td { background-color:#eee; }
|
||||||
</style><link rel="stylesheet" href="hledger.css"><table><tr><th colspan="4" 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></tr><tr><td colspan="4"> </td></tr><tr><th colspan="4" 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">90.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">10.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">502.00</th><th class="amount coltotal" style="text-align:right">100.00</th></tr><tr><td colspan="4"> </td></tr><tr><th colspan="4" 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></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">2.24</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">44.03</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">46.27</th></tr><tr><td colspan="4"> </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">53.73</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"> </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">90.00</td><td class="amount rowtotal" style="text-align:right">505.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">10.00</td><td class="amount rowtotal" style="text-align:right">97.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">502.00</th><th class="amount coltotal" style="text-align:right">100.00</th><th class="amount coltotal" style="text-align:right">602.00</th></tr><tr><td colspan="5"> </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">2.24</td><td class="amount rowtotal" style="text-align:right">28.26</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">44.03</td><td class="amount rowtotal" style="text-align:right">168.50</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">46.27</th><th class="amount coltotal" style="text-align:right">249.16</th></tr><tr><td colspan="5"> </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">53.73</th><th class="amount coltotal" style="text-align:right">352.84</th></tr></table>
|
||||||
|
|
||||||
|
|
||||||
### Quick start how to use hledger
|
### Quick start how to use hledger
|
||||||
|
@ -41,5 +41,5 @@ hledger-web --file ./finances.hledger
|
||||||
|
|
||||||
Writing a HTML table to the README
|
Writing a HTML table to the README
|
||||||
```
|
```
|
||||||
hledger incomestatement --file ./finances.hledger --layout bare --pretty --drop 1 --output-format html --yearly >> README.md
|
hledger incomestatement --file ./finances.hledger --layout bare --pretty --drop 1 --output-format html --yearly --row-total >> README.md
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue