mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update customers_controller.rb
This commit is contained in:
@@ -34,6 +34,12 @@ class CustomersController < ApplicationController
|
|||||||
|
|
||||||
autocomplete :customer, :name, :full => false, :extra_data => [:id]
|
autocomplete :customer, :name, :full => false, :extra_data => [:id]
|
||||||
|
|
||||||
|
def autocomplete_customer_vehicles
|
||||||
|
customer = Customer.find_by_id(params[:term])
|
||||||
|
items = customer.vehicles if customer
|
||||||
|
render :json => json_for_autocomplete(items, options[:display_value] ||= method, options[:extra_data])
|
||||||
|
end
|
||||||
|
|
||||||
# display a list of all customers
|
# display a list of all customers
|
||||||
def index
|
def index
|
||||||
if params[:search]
|
if params[:search]
|
||||||
|
|||||||
Reference in New Issue
Block a user