From a472749b214bf28f676bebb1f4b412f22a5f87a0 Mon Sep 17 00:00:00 2001 From: jerick Date: Tue, 21 Apr 2026 22:38:13 -0400 Subject: [PATCH] Fix bank account sign convention: positive = DEBIT (withdrawal) Huntington and Fidelity CSVs use positive amounts for withdrawals/ purchases and negative for deposits/credits. Change invertAmountSign to false so the normalizer correctly maps them. Co-Authored-By: Claude Sonnet 4.6 --- src/lib/csv/bank-profiles.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/csv/bank-profiles.ts b/src/lib/csv/bank-profiles.ts index 88e8096..cbd82cb 100644 --- a/src/lib/csv/bank-profiles.ts +++ b/src/lib/csv/bank-profiles.ts @@ -52,7 +52,7 @@ export const bankProfiles: BankProfile[] = [ dateColumn: 'Date', descriptionColumn: 'Description', amountColumn: 'Amount', - invertAmountSign: true, // negative = DEBIT, positive = CREDIT + invertAmountSign: false, // positive = DEBIT (withdrawal), negative = CREDIT (deposit) detectColumns: ['Date', 'Description', 'Amount', 'Split', 'Tags'], }, { @@ -63,7 +63,7 @@ export const bankProfiles: BankProfile[] = [ dateColumn: 'Run Date', descriptionColumn: 'Description', amountColumn: 'Amount($)', - invertAmountSign: true, // negative = DEBIT (purchase), positive = CREDIT + invertAmountSign: false, // positive = DEBIT (purchase/withdrawal), negative = CREDIT (deposit/dividend) detectColumns: ['Run Date', 'Description', 'Amount($)'], }, ]