From dae0106a1bba569380134462892d5e095c331d86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 26 Jan 2014 22:15:20 +0100 Subject: [PATCH] Use work effort instead of total to compute revenue total_effort contains the effort of the children but sum_tree needs only the value of the work without the children. review2931003 --- work.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/work.py b/work.py index fe3bc163d3..01facb1e7f 100644 --- a/work.py +++ b/work.py @@ -94,7 +94,7 @@ class Work: def getter(work): if work.list_price: - return work.list_price * Decimal(str(work.total_effort)) + return work.list_price * Decimal(str(work.effort)) else: return Decimal(0)