Update query_patch.rb

Fixed Filter
This commit is contained in:
2016-04-13 12:21:46 -04:00
parent 9fc94e93c6
commit b4255135c4

View File

@@ -42,9 +42,15 @@ module QueryPatch
def available_filters_with_qbo
return @available_filters if @available_filters
@available_filters = available_filters_without_qbo
@available_filters.add "customer", :type => :text
return @available_filters
@available_filters = available_filters_without_qbo
qbo_filters = {
"customer" => {
:name => l(:field_qbo_customer),
:type => :text,
:order => @available_filters.size + 1},
}
return @available_filters.merge!(qbo_filters)
end
end
end