[#4183] HourlyDeliverable#total (budget) should only include labor budget.

This commit is contained in:
Eric Davis
2010-07-13 17:38:49 -07:00
parent d8196842ff
commit 80cde2d222
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -19,8 +19,7 @@ class HourlyDeliverable < Deliverable
return 0 if contract.billable_rate.blank?
return 0 if labor_budgets.count == 0 && overhead_budgets.count == 0
hours = labor_budgets.sum(:hours) + overhead_budgets.sum(:hours)
return contract.billable_rate * hours
return contract.billable_rate * labor_budgets.sum(:hours)
end
# Block setting the total on HourlyDeliverables