{% extends "base.html" %} {% block content %}
| Source | Budgeted | Actual |
|---|---|---|
| {{ src }} {% if src == 'Auto King' %} Fridays {% endif %} |
{% if inc.get('actual') %}
✓ logged
{% endif %}
|
|
| Total | ${{ (w.income.values() | map(attribute='budgeted') | select | map('float') | sum if w.income else 0) | money }} | ${{ w.income_total | money }} |
| Bill | Due | Amount | Category |
|---|---|---|---|
| {{ b.name }} | {{ b.due_date.strftime('%b %-d') if b.due_date else '' }} | {% if b.amount %}${{ b.amount | money }}{% else %}—{% endif %} | {% if b.category %} {{ b.category }} {% endif %} |
| Bills Total | ${{ w.bills_total | money }} | ||
No bills due this week.
{% endif %}| Category | Budgeted | Spent | Left to Spend |
|---|---|---|---|
| {{ cat }} | ${{ actual | money }} | {% if budgeted %} {% if over %} -${{ (actual - budgeted) | money }} {% else %} ${{ left | money }} {% endif %} {% else %} — {% endif %} | |
| Totals | ${{ total_budgeted.v | money }} | ${{ total_actual.v | money }} | {% if total_budgeted.v > 0 %} {% if total_left < 0 %} -${{ total_left | abs | money }} over {% else %} ${{ total_left | money }} left {% endif %} {% endif %} |