[#4420] Added a second Retainer calculation method for specific dates.
This commit is contained in:
@@ -66,6 +66,10 @@ class Deliverable < ActiveRecord::Base
|
||||
overhead_budgets.sum(:budget)
|
||||
end
|
||||
|
||||
def overhead_budget_total_for_date(date=nil) #Used on subclasses
|
||||
overhead_budget_total
|
||||
end
|
||||
|
||||
# Total number of hours estimated in the Deliverable's budgets
|
||||
def estimated_hour_budget_total
|
||||
(labor_budgets.sum(:hours) || 0.0) +
|
||||
|
||||
Reference in New Issue
Block a user