;examples:csv: monefy

This commit is contained in:
Simon Michael 2025-10-08 06:44:50 -10:00
parent a982f385c7
commit 5206b10d8e
2 changed files with 29 additions and 0 deletions

9
examples/csv/monefy.csv Normal file
View File

@ -0,0 +1,9 @@
date,account,category,amount,currency,converted amount,currency,description
06/12/2021,Cash,Bills,-55,USD,-55,USD,fbbd
06/12/2021,Cash,Clothes,-25,USD,-25,USD,
06/12/2021,Cash,Salary,"1,280.8",USD,"1,280.8",USD,salary
06/12/2021,Payment card,Car,-180,USD,-180,USD,
06/12/2021,Payment card,Savings,"4,884",USD,"4,884",USD,geehh
06/12/2021,Payment card,Gifts,-12,USD,-12,USD,gift
06/12/2021,Cash,To 'Payment card',-200,USD,-200,USD,
06/12/2021,Payment card,From 'Cash',200,USD,200,USD,
1 date account category amount currency converted amount currency description
2 06/12/2021 Cash Bills -55 USD -55 USD fbbd
3 06/12/2021 Cash Clothes -25 USD -25 USD
4 06/12/2021 Cash Salary 1,280.8 USD 1,280.8 USD salary
5 06/12/2021 Payment card Car -180 USD -180 USD
6 06/12/2021 Payment card Savings 4,884 USD 4,884 USD geehh
7 06/12/2021 Payment card Gifts -12 USD -12 USD gift
8 06/12/2021 Cash To 'Payment card' -200 USD -200 USD
9 06/12/2021 Payment card From 'Cash' 200 USD 200 USD

View File

@ -0,0 +1,20 @@
skip 1
fields date, account, category, amount_, currency_, converted_amount, converted_currency, description
date-format %d/%m/%Y
amount %amount_ %currency_
decimal-mark .
account1 assets:%account
if %account Payment card
account1 assets:Checking
account2 revenues:%category
if %amount_ -
account2 expenses:%category
if %category (To|From).*Payment card
account2 assets:Checking
if %category (To|From).*Cash
account2 assets:Cash
if %category Savings
account2 assets:Savings