FixedDeliverable.spent will now return the fixed cost. #1439

This commit is contained in:
Eric Davis committed 2008-07-10 17:36:14 -07:00
1 parent abc4dd84c6
commit c90e7337f5
2 files changed
+11 -7

No files matched your search

+3 -3
View File
@@ -6,10 +6,10 @@ class FixedDeliverable < Deliverable
0
end
# Returns the amount spent. It will always be related to the progress of the
# FixedDeliverable because it is managed by the user
# Returns the amount spent. It will always be the fixed cost because
# that money has been allocated already and is managed by the user
def spent
(self.progress.to_f / 100 ) * self.budget
self.fixed_cost || 0.0
end
def profit # :nodoc: