[#4182] Show the total Labor and Overhead values on the Contract details page.

This commit is contained in:
Eric Davis committed 2010-07-07 11:10:51 -07:00
1 parent b22db284c5
commit f2e640b5f8
4 files changed
+62 -4

No files matched your search

+9 -1
View File
@@ -32,7 +32,15 @@ class Deliverable < ActiveRecord::Base
write_attribute(:total, v)
end
end
def labor_budget_total
labor_budgets.sum(:budget)
end
def overhead_budget_total
overhead_budgets.sum(:budget)
end
if Rails.env.test?
generator_for :title, :method => :next_title