[#6636] Add overhead table to the deliverable finance report

This commit is contained in:
Eric Davis
2011-10-13 09:28:31 -07:00
parent 1f9cd9e86f
commit acc825a4fe
4 changed files with 107 additions and 4 deletions
+4
View File
@@ -274,6 +274,10 @@ class Deliverable < ActiveRecord::Base
project.activities.select {|activity| activity.billable? }
end
def non_billable_time_entry_activities
project.activities.reject {|activity| activity.billable? }
end
# Total amount spent ($) for a given activity
def spent_for_activity(activity)
issues.all.inject(0.0) do |all_issues_total, issue|