[#4182] Show the total Labor and Overhead values on the Contract details page.
This commit is contained in:
1 parent
b22db284c5
commit
f2e640b5f8
4 files changed
+62
-4
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user