git-svn-id: https://svn.redmine.org/redmine/trunk@22801 e93f8b46-1217-0410-a6f0-8f06a7374b81pull/149/merge
COLUMN_SQL = Arel.sql("COALESCE(#{Issue.table_name}.estimated_hours, 0) * (100 - COALESCE(#{Issue.table_name}.done_ratio, 0)) / 100") | COLUMN_SQL = Arel.sql("COALESCE(#{Issue.table_name}.estimated_hours, 0) * (100 - COALESCE(#{Issue.table_name}.done_ratio, 0)) / 100") | ||||
def initialize | def initialize | ||||
super :estimated_remaining_hours, totalable: true, sortable: COLUMN_SQL | |||||
super(:estimated_remaining_hours, totalable: true, sortable: COLUMN_SQL) | |||||
end | end | ||||
def value(object) | def value(object) |