From d7cfdfd651a1d8e2595d8fdd97824f78f8ba5dc1 Mon Sep 17 00:00:00 2001 From: Ilja Kocken Date: Sat, 9 Dec 2023 19:12:24 +0100 Subject: [PATCH] add FHB CSV rules file --- examples/csv/first-hawaiian-bank.rules | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 examples/csv/first-hawaiian-bank.rules diff --git a/examples/csv/first-hawaiian-bank.rules b/examples/csv/first-hawaiian-bank.rules new file mode 100644 index 000000000..dfe8e8eab --- /dev/null +++ b/examples/csv/first-hawaiian-bank.rules @@ -0,0 +1,30 @@ +skip 1 +date-format %-m/%-d/%Y # default date format of their CSV export +# date-format %F # I prefer to preformat the CSVs so they're all %F. + +fields account_number, date, check, description_, debit, credit, status, balance_ + +# code %account_number +description %description_ +amount1-out %debit +amount1-in %credit +balance1 %balance_ +currency1 $ +status * + +account1 assets:current:yourname:FHB:checking + +# default fallbacks +if %debit [0-9] + account2 expenses:unknown +if %credit [0-9] + account2 income:unknown + +# exchanges with my other assets +if +%description_ preauthorized trnsfr Venmo + account2 assets:transfers:FHBVenmo + +# assume cash, but could be a cheque too! +if %type DEPOSIT + account2 assets:current:yourname:cash:USD