Update query_patch.rb

This commit is contained in:
2016-04-18 12:14:14 -04:00
parent fd8a068f16
commit f10114d43c

View File

@@ -41,16 +41,19 @@ module QueryPatch
end
def available_filters_with_qbo
return @available_filters if @available_filters
@available_filters = available_filters_without_qbo
unless @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)
qbo_filters = {
"customer" => {
:name => l(:field_qbo_customer),
:type => :text,
:order => @available_filters.size + 1},
}
@available_filters.merge!(qbo_filters)
end
@available_filters
end
end
end