hledger/examples/csv/mint.csv.rules
2017-04-19 08:24:23 -07:00

24 lines
708 B
Plaintext
Executable File

# hledger csv conversion rules v2
# mint.com
account1 assets:personal:bank:wells fargo:checking
# 0 1 2 3 4 5 6 7 8
#"Date","Description","Original Description","Amount","Transaction Type","Category","Account Name","Labels","Notes"
fields date, shortdesc, origdesc, amount, txntype, category, account, labels, notes
date-format %-m/%-d/%Y
skip 1
currency $
# hopefully "debit" only appears in Transaction Type field
if debit
amount -%amount
description: %shortdesc - %origdesc %category %account - %txntype
account2: expenses:personal:%category
if Home Improvement
account2: expenses:personal:home:home care