[#4420] Display per period Retainer values on the Contract details page.

This commit is contained in:
Eric Davis committed 2010-09-09 14:56:20 -07:00
1 parent 0a1bb9169d
commit 5ef7d0271d
8 files changed
+47 -20

No files matched your search

+2 -2
View File
@@ -29,8 +29,8 @@ class FixedDeliverable < Deliverable
# The amount of money remaining after expenses have been taken out
# Profit left = Total - Labor spent - Overhead spent
def profit_left
total_spent - labor_budget_spent - overhead_spent
def profit_left(date=nil)
total_spent(date) - labor_budget_spent(date) - overhead_spent(date)
end
# Hardcoded value used as a wrapper for the old Budget plugin API.