Completed budget.spent calculation. #1137

This commit is contained in:
Eric Davis
2008-05-28 13:01:10 -07:00
parent 65da8e7594
commit 990a10a4e8
2 changed files with 16 additions and 2 deletions
+1 -2
View File
@@ -41,9 +41,8 @@ class Budget
return ((self.spent / self.budget) * 100).round
end
# TODO
def spent
0
self.deliverables.collect(&:spent).inject { |sum, n| sum + n }
end
def left