📉 Remaining budget never goes negative, breaking UI logic
Description
The backend prevents negative values for remaining budget, but the UI expects them.
Issue
Backend:
remaining = max(0, monthly_budget - total_spent)
Frontend:
- Checks "remaining < 0" to show “over budget”
Impact
- UI condition for “over budget” never triggers
- Users are not informed when they exceed budget
Suggested Fix
- Remove "max(0, ...)", OR
- Update UI logic to match backend behavior
📉 Remaining budget never goes negative, breaking UI logic
Description
The backend prevents negative values for remaining budget, but the UI expects them.
Issue
Backend:
remaining = max(0, monthly_budget - total_spent)
Frontend:
Impact
Suggested Fix