# hledger CSV rules for hledger-csv-import-checking.csv # Utilly test file: a fictional September 2026 checking statement, 31 transactions. # Guide: https://getutilly.com/guides/hledger-import-csv # Save this file next to the CSV, named like the CSV with .rules added. # the CSV has one header line (Date,Description,Amount) skip 1 # the three CSV columns, in order, become hledger's date, description and amount fields date, description, amount # the dates are month first, like 09/01/2026 date-format %m/%d/%Y # the amounts have no currency symbol, so add one currency $ # the account this CSV belongs to account1 assets:bank:checking # Unmatched lines go to income:unknown (money in) or expenses:unknown (money out). # These rules pick a better account by matching text in the line: if GUSTO PAYROLL account2 expenses:payroll if ADP TAX account2 expenses:payroll taxes if STRIPE TRANSFER|MOBILE DEPOSIT|ZELLE FROM|WIRE TRANSFER IN account2 income:sales if TO SAVINGS account2 assets:bank:savings if AMEX EPAYMENT account2 liabilities:amex if INTUIT|GOOGLE WORKSPACE|ADOBE account2 expenses:software if AUSTIN ENERGY|AT&T account2 expenses:utilities if MONTHLY SERVICE FEE account2 expenses:bank fees if INTEREST PAYMENT account2 income:interest