[#4183] Implemented FixedDeliverable#profit_left (was called profit_spent).
This commit is contained in:
1 parent
de42a32121
commit
597062fdf8
2 files changed
+43
No files matched your search
@@ -26,6 +26,12 @@ class FixedDeliverable < Deliverable
|
||||
budgets = labor_budget_total + overhead_budget_total
|
||||
(total || 0.0) - budgets
|
||||
end
|
||||
|
||||
# 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
|
||||
end
|
||||
|
||||
# Hardcoded value used as a wrapper for the old Budget plugin API.
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user