{% extends "ledger/base.html" %} {% load ledger_extras %} {% block title %}{{ group.name }} · tripsplit{% endblock %} {% block content %}

{{ group.name }}

{{ group.members.count }} people{% if group.start_date %} · from {{ group.start_date|date:"j M Y" }}{% endif %}

{% if mode == 'converted' %}Show per original currency{% else %}Show converted to {{ group.base_currency }}{% endif %} Add expense
{% for b in blocks %}

Balances {% if mode == 'original' or blocks|length > 1 %}{{ b.currency }}{% endif %}

{% for member, v in b.rows %}
{{ member.name }}
{{ v|money:b.currency }}
{% endfor %}

Green: is owed. Red: owes.

Settle-up plan {% if mode == 'original' or blocks|length > 1 %}{{ b.currency }}{% endif %}

{% include "ledger/_plan.html" with transfers=b.optimal_transfers %}

{{ b.optimal|length }} transfer{{ b.optimal|length|pluralize }} (minimum) {% if b.savings_vs_greedy %}· saves {{ b.savings_vs_greedy }} vs greedy{% endif %} {% if b.savings_vs_pairwise %}· {{ b.savings_vs_pairwise }} fewer than {{ b.pairwise|length }} raw pairwise debts{% endif %}. Settle up

{% endfor %}

Recent expenses

{% for e in expenses %} {% empty %}{% endfor %}
{{ e.description }}
{{ e.date|date:"j M" }} · {{ e.get_category_display }}
{{ e.amount|dec:e.currency }}{% if e.currency != group.base_currency %}
≈ {{ e.amount|mul:e.fx_rate|dec:group.base_currency }}
{% endif %}
No expenses yet.

Recent activity

{% for a in activities %} {% empty %}{% endfor %}
{{ a.actor }} {{ a.text }}
{{ a.created_at|timesince }} ago
Nothing yet.

Full log and undo · Export CSV

{% endblock %}