diff --git a/backend/app/services/budget_projection.py b/backend/app/services/budget_projection.py index a235881..27d21b2 100644 --- a/backend/app/services/budget_projection.py +++ b/backend/app/services/budget_projection.py @@ -93,6 +93,7 @@ def compute_actuals_by_source( Transaction.date >= start, Transaction.date < end, Transaction.source == source, + Transaction.transaction_type != TransactionType.DEPOSITO, ) ).one() @@ -124,6 +125,7 @@ def compute_actuals_by_category( Transaction.date >= start, Transaction.date < end, Transaction.category_id.is_not(None), # type: ignore[union-attr] + Transaction.transaction_type != TransactionType.DEPOSITO, ) .group_by(Transaction.category_id, Transaction.transaction_type) ).all() @@ -217,6 +219,7 @@ def compute_monthly_projection( Transaction.date >= start, Transaction.date < end, Transaction.category_id.is_(None), # type: ignore[union-attr] + Transaction.transaction_type != TransactionType.DEPOSITO, ) .group_by(Transaction.transaction_type) ).all()