[#4183] Implemented HourlyDeliverable#profit_left.
This commit is contained in:
1 parent
cd3ba5e5e5
commit
1f22b203b6
2 files changed
+44
No files matched your search
@@ -53,4 +53,10 @@ class HourlyDeliverable < 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
|
||||
end
|
||||
Reference in new issue
Block a user