[#4552] Add the Overhead hours spent to the Deliverable details

This commit is contained in:
Eric Davis committed 2010-09-29 10:54:33 -07:00
1 parent 38f2bcb17f
commit f37306aace
6 files changed
+129 -3

No files matched your search

+13
View File
@@ -146,6 +146,19 @@ class RetainerDeliverable < HourlyDeliverable
end
end
def overhead_hours_spent_total(date=nil)
case scope_date_status(date)
when :in
time_entries = issues.collect {|issue| issue.time_entries.all(:conditions => {:tyear => date.year, :tmonth => date.month}) }.flatten
nonbillable_hours_on_time_entries(time_entries)
when :out
0
else
super
end
end
def fixed_budget_total(date=nil)
case scope_date_status(date)
when :in