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/app/models/cost_query/group_by/sql_aggregation.rb

12 lines
264 B

class CostQuery::GroupBy
module SqlAggregation
include Report::GroupBy::SqlAggregation
def sql_statement
super.tap do |sql|
sql.sum :units => :units, :real_costs => :real_costs, :display_costs => :display_costs
end
end
end
end