{% extends "base.html" %} {% block title %}Expense Twin{% endblock %} {% block page_title %}Expense Twin{% endblock %} {% block content %}
Real-time budget utilization across all cost centers
No expense data yet.
Add expenses manually or import from CSV/Excel to see department analytics.
| Department | Budget | Spent | Remaining | Utilization | Status |
|---|---|---|---|---|---|
|
{{ d.name }}
({{ d.code }})
|
{{ d.budget | format_currency }} | {{ d.spent | format_currency }} | {{ d.remaining | format_currency }} |
{{ "%.1f"|format(d.utilization) }}%
|
{% if d.utilization > 100 %} Over Budget {% elif d.utilization > 90 %} Critical {% elif d.utilization > 70 %} High {% elif d.utilization > 40 %} Normal {% else %} Low {% endif %} |
| Date | Department | Category | Description | Amount | Ref # | Action |
|---|---|---|---|---|---|---|
| {{ e.transaction_date.strftime('%Y-%m-%d') if e.transaction_date else '-' }} | {% set dept = departments|selectattr("id", "equalto", e.department_id)|list|first if e.department_id else None %} {{ dept.name if dept else 'Unassigned' }} | {{ e.category or 'General' }} | {{ e.amount | format_currency }} | {{ e.reference_number or '-' }} |
No expense records found.