Added rdoc comments
This commit is contained in:
1 parent
cb7d4a41a0
commit
8150cfcabc
6 files changed
+61
-11
No files matched your search
@@ -1,16 +1,18 @@
|
||||
class FixedDeliverable < Deliverable
|
||||
unloadable
|
||||
|
||||
# Fixed rate bids should always have a budget score of 0. This is because the budget is managed by the contractor.
|
||||
# FixedDeliverables should always have a budget score of 0. This is because the budget is managed by the contractor.
|
||||
def score
|
||||
0
|
||||
end
|
||||
|
||||
|
||||
# Returns the amount spent. It will always be related to the progress of the
|
||||
# FixedDeliverable because it is managed by the user
|
||||
def spent
|
||||
(self.progress.to_f / 100 ) * self.budget
|
||||
end
|
||||
|
||||
def profit
|
||||
def profit # :nodoc:
|
||||
if read_attribute(:profit_percent).nil?
|
||||
return super
|
||||
else
|
||||
@@ -18,6 +20,7 @@ class FixedDeliverable < Deliverable
|
||||
end
|
||||
end
|
||||
|
||||
# Budget for the labor, excluding overhead, profit, and materials
|
||||
def labor_budget
|
||||
return read_attribute(:fixed_cost)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user