From d4d0f6575952254bb2ca3d49260a54ebda9a079b Mon Sep 17 00:00:00 2001 From: Carlos Escalante Date: Wed, 15 Apr 2026 19:27:50 -0600 Subject: [PATCH] Exclude income transactions from budget transactions list Salary/deposit transactions were showing in the "Efectivo y Transferencias" tab on the Budget page with a negative sign, which is confusing since that view is for expenses only. Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/pages/Budget.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/Budget.tsx b/frontend/src/pages/Budget.tsx index 21bd48f..4cd6ff7 100644 --- a/frontend/src/pages/Budget.tsx +++ b/frontend/src/pages/Budget.tsx @@ -68,7 +68,9 @@ export default function Budget() { } const { data } = await api.get('/transactions/', { params }); - setTransactions(data); + const INCOME_TYPES = ['DEPOSITO', 'SALARY']; + const filtered = data.filter((tx) => !INCOME_TYPES.includes(tx.transaction_type)); + setTransactions(filtered); } finally { setTxLoading(false); }