diff --git a/budget/templates/compute_bills.html b/budget/templates/compute_bills.html deleted file mode 100644 index 4c6fd56..0000000 --- a/budget/templates/compute_bills.html +++ /dev/null @@ -1,31 +0,0 @@ -{% 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. -
  3. Increase the amount this person have to pay
  4. -
  5. At the same time, increase what the payer of the bill have to receive
  6. -
  7. At the end, for each person, substract what he have to pay to what he have to receive
  8. -
-
- -
- Mark this as payed / processed -
- - - - -{% for person, balance in balances.items() %} - -{% endfor %} - -
NameBalance
{{ person.name }}{{ balance }}
-{% endblock %} diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html index ad6cee9..76a7701 100644 --- a/budget/templates/list_bills.html +++ b/budget/templates/list_bills.html @@ -12,7 +12,7 @@ {% set balance = project.get_balance() %} {% for member in project.active_members %}
  • - {{ balance[member] }} + {{ balance[member] }} {{ member.name }} delete
  • {% endfor %} @@ -44,9 +44,6 @@ - Compute bills -

    Periodically (probably at the end of each month, you can compute the balance of each people, in order to reset all the debts. You can also let this "as-is" and try to find a good balance, that's up to you

    - {% else %}

    Nothing to list yet. You probably want to add a bill ?

    {% endif %} diff --git a/budget/web.py b/budget/web.py index b98e764..24a034b 100644 --- a/budget/web.py +++ b/budget/web.py @@ -169,7 +169,7 @@ def add_bill(project): db.session.add(form.save()) db.session.commit() - flash("The bill have been added") + flash("The bill has been added") return redirect(url_for('list_bills', project_id=project.id)) return render_template("add_bill.html", form=form, project=project)