fix(transactions): editable transaction type, fee/interest counted as spend, fees category

- TypeBadge is now clickable — opens inline select to change debit/credit/fee/interest/etc.
- PATCH /api/transactions/[id] now accepts transaction_type, updates transactions table directly
- Analytics monthly query includes fee and interest types as spend (not just debit)
- fee and interest amounts show red in transaction list (same as debit)
- Add fees category to taxonomy
This commit is contained in:
2026-03-10 00:24:42 +11:00
parent 714c5a9b25
commit dd11019fdf
5 changed files with 74 additions and 14 deletions
+1
View File
@@ -23,6 +23,7 @@ export const CATEGORIES = [
"pets",
"gifts",
"charity",
"fees",
"other",
] as const;
+1
View File
@@ -94,6 +94,7 @@ export function useUpdateTransaction() {
category?: string;
merchant_normalized?: string;
notes?: string;
transaction_type?: string;
}) => {
const res = await fetch(`/api/transactions/${id}`, {
method: "PATCH",