aboutsummaryrefslogtreecommitdiff
path: root/budget/web.py
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2013-05-09 18:32:55 -0700
committerAlexis Metaireau <alexis@notmyidea.org>2013-05-09 18:32:55 -0700
commita71d249e6c35b9a204d50e40365945c359ee5b63 (patch)
tree4c7e03c81868237192992d8d2ff587f68fab0a4d /budget/web.py
parentaa7d79d2ad119e575d8cd14f19369e74b22f804b (diff)
parentff9ead22031563b31f14e87ae3b3c537a06b8c41 (diff)
downloadihatemoney-mirror-a71d249e6c35b9a204d50e40365945c359ee5b63.zip
ihatemoney-mirror-a71d249e6c35b9a204d50e40365945c359ee5b63.tar.gz
ihatemoney-mirror-a71d249e6c35b9a204d50e40365945c359ee5b63.tar.bz2
Merge pull request #96 from aavenel/master
New feature : Settle the bill
Diffstat (limited to 'budget/web.py')
-rw-r--r--budget/web.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/budget/web.py b/budget/web.py
index 5afd9b4..0b302cd 100644
--- a/budget/web.py
+++ b/budget/web.py
@@ -383,10 +383,11 @@ def change_lang(lang):
return redirect(request.headers.get('Referer') or url_for('.home'))
-@main.route("/<project_id>/compute")
-def compute_bills():
+@main.route("/<project_id>/settle_bills")
+def settle_bill():
"""Compute the sum each one have to pay to each other and display it"""
- return render_template("compute_bills.html")
+ bills = g.project.get_transactions_to_settle_bill()
+ return render_template("settle_bills.html", bills=bills)
@main.route("/<project_id>/archives/create", methods=["GET", "POST"])