From 3303ac11b88bfe721e42d26b82d71e20f5470d64 Mon Sep 17 00:00:00 2001 From: max thomas Date: Sat, 9 Jul 2022 15:37:41 -0400 Subject: [PATCH] examples/csv: add example for capital one credit cards [ci skip] --- examples/csv/capital-one.csv.rules | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 examples/csv/capital-one.csv.rules diff --git a/examples/csv/capital-one.csv.rules b/examples/csv/capital-one.csv.rules new file mode 100644 index 000000000..9a461c3b2 --- /dev/null +++ b/examples/csv/capital-one.csv.rules @@ -0,0 +1,21 @@ +# this is the format that capital one returns if you export +# data as .csv as of July 9 2022 + +account1 liabilities:credit cards:capital one + +# first rows are headers +skip 1 + +# columns are Transaction Date in yyyy-mmm-dd, Posted Date, Card no., +# Description, Category, Debit, Credit +fields date, posting-date, _, description, _, amount-out, amount-in + +currency $ + +# create the posting date per: +# https://hledger.org/1.26/hledger.html#posting-dates +comment1 date:%posting-date + +# example autopay entry; fill in your bank and uncomment if helpful +# if CAPITAL ONE AUTOPAY PYMT +# account2 assets:bank:yours:checking