add rules files to parse csv bank exports #2
|
@ -12,6 +12,13 @@ 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"> </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">280.00</td><td class="amount rowtotal" style="text-align:right">695.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">50.00</td><td class="amount rowtotal" style="text-align:right">137.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">330.00</th><th class="amount coltotal" style="text-align:right">832.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">88.06</td><td class="amount rowtotal" style="text-align:right">212.53</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">90.30</th><th class="amount coltotal" style="text-align:right">293.19</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">239.70</th><th class="amount coltotal" style="text-align:right">538.81</th></tr></table>
|
||||
|
||||
### 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/<csv-file>`
|
||||
|
||||
### Quick start how to use hledger
|
||||
|
||||
|
|
14
import/expenses.csv.rules
Normal file
14
import/expenses.csv.rules
Normal file
|
@ -0,0 +1,14 @@
|
|||
skip 1
|
||||
|
||||
separator ;
|
||||
|
||||
fields , , , , date, , , , , , description, amount
|
||||
|
||||
date-format %d.%m.%Y
|
||||
|
||||
currency €
|
||||
|
||||
decimal-mark ,
|
||||
|
||||
account1 expenses:infra
|
||||
account2 assets:bank
|
16
import/member-donations.csv.rules
Normal file
16
import/member-donations.csv.rules
Normal file
|
@ -0,0 +1,16 @@
|
|||
skip 1
|
||||
|
||||
separator ;
|
||||
|
||||
fields , , , , date, , , , , , description, amount
|
||||
|
||||
date-format %d.%m.%Y
|
||||
|
||||
currency €
|
||||
|
||||
decimal-mark ,
|
||||
|
||||
account1 assets:bank
|
||||
account2 income:donations:member
|
||||
|
||||
description donation of member
|
16
import/non-member-donations.csv.rules
Normal file
16
import/non-member-donations.csv.rules
Normal file
|
@ -0,0 +1,16 @@
|
|||
skip 1
|
||||
|
||||
separator ;
|
||||
|
||||
fields , , , , date, , , , , , description, amount
|
||||
|
||||
date-format %d.%m.%Y
|
||||
|
||||
currency €
|
||||
|
||||
decimal-mark ,
|
||||
|
||||
account1 assets:bank
|
||||
account2 income:donations:non-member
|
||||
|
||||
description donation of non-member
|
Loading…
Reference in a new issue