[#4183] HourlyDeliverable#total (budget) should only include labor budget.
This commit is contained in:
1 parent
d8196842ff
commit
80cde2d222
2 files changed
+3
-4
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user