hledger/examples/csv/csb43.csv.rules
Evilham 60b26b8e4b Add a basic example of rule parsing for the output of csb2format.
csb2format deals with the CSB43/AEB43 format, which all banks operating in
Spain must support.
Having these example rules enables easens bootstraping for users with a
Spanish bank account.
2019-12-06 05:51:10 -08:00

16 lines
419 B
Plaintext

# csb43.csv.rules
# Rules for csb2format -f csv "${CSV_FILE}" -
# Using https://pypi.org/project/csb43/
# Skip header
skip 1
# Change to your taste
account1 assets:bank:csb43
# These appear to be the useful columns for hledger
fields _,_,_,_,_,_,currency,_,_,_,_,_,_,_,_,_,_,_,_,item1,item2,reference1,reference2,date,_,amount,_,_
# Merge items for the description
description %item1 %item2 %reference1 %reference2