[#4420] Display per period Retainer values on the Contract details page.
This commit is contained in:
1 parent
0a1bb9169d
commit
5ef7d0271d
8 files changed
+47
-20
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user