[#4555] Include the spent FixedBudget in Hourly and Retainers total_spent

This commit is contained in:
Eric Davis
2010-09-23 10:14:12 -07:00
parent 0a80a54be3
commit ed9f73e8a0
5 changed files with 19 additions and 11 deletions
+2 -1
View File
@@ -37,7 +37,8 @@ class HourlyDeliverable < Deliverable
total
}
return hours * contract.billable_rate
fixed_budget_amount = fixed_budget_total_spent(date) + fixed_markup_budget_total_spent(date)
return (hours * contract.billable_rate) + fixed_budget_amount
end
# Block setting the total on HourlyDeliverables
+3 -1
View File
@@ -198,7 +198,9 @@ class RetainerDeliverable < HourlyDeliverable
total
}
return hours * contract.billable_rate
fixed_budget_amount = fixed_budget_total_spent(date) + fixed_markup_budget_total_spent(date)
return (hours * contract.billable_rate) + fixed_budget_amount
when :out
0
else