diff --git a/app/models/cost_query/filter/cost_object_id.rb b/app/models/cost_query/filter/cost_object_id.rb new file mode 100644 index 0000000000..c3645c3a84 --- /dev/null +++ b/app/models/cost_query/filter/cost_object_id.rb @@ -0,0 +1,8 @@ +class CostQuery::Filter::CostTypeId < CostQuery::Filter::Base + dont_display! + label :field_cost_type + + def self.available_values(user) + ([[l(:caption_labor), -1]] + CostType.find(:all, :order => 'name').map { |t| [t.name, t.id] }) + end +end