OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/modules/costs/app/models/work_package/material_costs.rb

20 lines
308 B

class WorkPackage
class MaterialCosts < AbstractCosts
def costs_model
CostEntry
end
def filter_authorized(scope)
CostEntry.with_visible_costs_on scope
end
def costs_sum_alias
'cost_entries_sum'
end
def subselect_alias
'cost_entries'
end
end
end