{% extends "base.html" %} {% block title %}{{ _("Who spent") }} · Wealth Dashboard{% endblock %} {% block heading %}{{ _("Who spent") }}{% endblock %} {% block lede %}

{{ _("The household's spending split between its people. A row of spending belongs to one of you, or to the household — shared, halved — or to nobody yet; what nobody has claimed sits in its own bucket rather than being quietly absorbed. Say whose a row is on the Transactions page, and it becomes a rule for the next one like it.") }}

{% endblock %} {% block content %} {% set t = data.totals %}
{% if data.period.partial %}{{ _("month still running") }}{% endif %}
{% for p in t.people %}
{{ p.name }}
{{ money(p.total, data.base_currency) }}
{{ _f("{direct} own + {share} half of shared", direct=money(p.direct, data.base_currency), share=money(p.share, data.base_currency)) }}
{% endfor %}
{{ _("Shared") }}
{{ money(t.shared, data.base_currency) }}
{{ _("split evenly") }}
{{ _("Nobody yet") }}
{{ money(t.unassigned, data.base_currency) }}
{% if data.counts.unassigned %}{{ _n(data.counts.unassigned, "{n} row to assign", "{n} rows to assign") }}{% else %}{{ _("everything is assigned") }}{% endif %}
{% if data.previous and data.previous.totals.total %}

{{ _f("The month before, {month}: {total} in all", month=mon(data.previous.month), total=money(data.previous.totals.total, data.base_currency)) }}{% for p in data.previous.totals.people %} · {{ p.name }} {{ money(p.total, data.base_currency) }}{% endfor %}.

{% endif %}

{{ _("Per month") }}

{{ _("each person's own spending plus half of what was shared") }}
{% if data.by_category %}

{{ _("By category") }}

{% for p in t.people %}{% endfor %} {% for c in data.by_category %} {% for p in c.people %}{% endfor %} {% endfor %}
{{ _("Category") }}{{ p.name }}{{ _("Shared") }}{{ _("Nobody yet") }}{{ _("Total") }}
{{ c.label }}{{ money(p.direct, data.base_currency) if p.direct else '—' }}{{ money(c.shared, data.base_currency) if c.shared else '—' }} {{ money(c.unassigned, data.base_currency) if c.unassigned else '—' }} {{ money(c.total, data.base_currency) }}
{% else %}

{{ _("No spending in this window.") }}

{% endif %} {% endblock %} {% block scripts %} {% endblock %}