From 5206b10d8ee3738c7bd7411d72fcde7a8424f602 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 8 Oct 2025 06:44:50 -1000 Subject: [PATCH] ;examples:csv: monefy --- examples/csv/monefy.csv | 9 +++++++++ examples/csv/monefy.csv.rules | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 examples/csv/monefy.csv create mode 100644 examples/csv/monefy.csv.rules diff --git a/examples/csv/monefy.csv b/examples/csv/monefy.csv new file mode 100644 index 000000000..ab617f3da --- /dev/null +++ b/examples/csv/monefy.csv @@ -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, diff --git a/examples/csv/monefy.csv.rules b/examples/csv/monefy.csv.rules new file mode 100644 index 000000000..a72776df9 --- /dev/null +++ b/examples/csv/monefy.csv.rules @@ -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 +