{% extends "layout.html" %} {% block top_menu %} Back to the list {% endblock %} {% block content %}

Computations

  1. For each person, get the list of bills he have to pay
  2. Increase the amount this person have to pay
  3. At the same time, increase what the payer of the bill have to receive
  4. At the end, for each person, substract what he have to pay to what he have to receive
Mark this as payed / processed
{% for person, balance in balances.items() %} {% endfor %}
NameBalance
{{ person.name }}{{ balance }}
{% endblock %}