From e7ba28dbf758d576f75d7b700d3e1b566710ae38 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 (transplanted from ce55336d85d1d81e1117ace09f851edbac98f228) --- work.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/work.py b/work.py index b2809298a4..f0548022f8 100644 --- a/work.py +++ b/work.py @@ -68,7 +68,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)