Commit Graph

14 Commits

Author SHA1 Message Date
jerick
dc45f489a6 Fix budget spend showing negative when TRANSFER transactions assigned
TRANSFER type fell into the ELSE branch of the spend CASE expression,
treating transfers as negative spend like refunds. Explicitly handle
each type: DEBIT=positive, CREDIT=negative, TRANSFER=0.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-25 17:25:42 +00:00
6f1376cc53 Add TRANSFER transaction type with bulk action and auto-rules
- Add TRANSFER to TransactionType enum; excluded from cash flow queries
- Add TransferRule model: description patterns that auto-mark transactions
  as transfers on upload (takes priority over budget rules)
- Bulk action "Mark as transfer" in transaction table
- Transfer Rules button/dialog on transactions page for managing patterns
- Transfers shown with ⇄ prefix and muted color in transaction list

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 20:15:07 -04:00
587ac19b18 Revert budget to net DEBIT-CREDIT formula, remove fix-cc-types endpoint
Budget formula correctly adds DEBIT (CC charges stored from positive CSV
values) and subtracts CREDIT (refunds from negative CSV values).
Remove the fix-cc-types endpoint which was flipping CC transaction types
and causing charges to appear as CREDIT.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 16:46:49 -04:00
00d4796008 Fix budget totals going negative
Budget formula now sums DEBIT transactions only, matching the intended
"current-month DEBIT total" behavior. Previously, CREDIT transactions
(CC payments) assigned to a budget would subtract and push totals negative.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 16:40:03 -04:00
0cf4612106 Add INVESTMENT account type with manual portfolio value recording 2026-04-21 11:32:50 -04:00
a9c12b94e1 Budget spend: simple DEBIT+/CREDIT- net formula, consistent with type flip 2026-04-21 10:52:39 -04:00
1a984d1eac Fix budget sign logic: CC CREDIT=spend, CC DEBIT=refund (type-flip aware) 2026-04-21 10:46:05 -04:00
c2b9184f2c Changed budget allocation 2026-04-21 10:43:00 -04:00
8c0e4ad684 budget pulls all Cc transactions instead of just credits 2026-04-21 10:37:33 -04:00
2a63b9120e Budget query needs to look for credit for CCs 2026-04-21 10:25:49 -04:00
7ccd64a7bb CC account value consistency 2026-04-21 08:25:16 -04:00
d67a80b413 account specific budget queries 2026-04-20 23:44:06 -04:00
91a33cdfec Month Year selection for Dashboard 2026-04-20 23:31:59 -04:00
55debd082b first build commit 2026-04-19 00:44:43 -04:00