include labor costs in cost type list

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1534 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
t.felgentreff 14 years ago
parent bb8b2787fc
commit 3666ab992b
  1. 3
      app/models/cost_query/filter/cost_type_id.rb

@ -1,8 +1,7 @@
class CostQuery::Filter::CostTypeId < CostQuery::Filter::Base
label :field_cost_type
dont_display!
def self.available_values
CostType.all.map { |t| [t.name, t.id] }
[[l(:caption_labor), -1]] + CostType.all.map { |t| [t.name, t.id] }
end
end

Loading…
Cancel
Save