Added routes for filtering estimates & invoices

This commit is contained in:
2017-04-03 21:52:39 -04:00
committed by GitHub
parent fd3c8e15e6
commit e8619529d4

View File

@@ -34,14 +34,15 @@ resources :payments
#webhook #webhook
post 'qbo/webhook', :to => 'qbo#qbo_webhook' post 'qbo/webhook', :to => 'qbo#qbo_webhook'
#ajax #java script routes
get 'filter_vehicles_by_customer' => 'customers#filter_vehicles_by_customer' get 'filter_vehicles_by_customer' => 'customers#filter_vehicles_by_customer'
get 'filter_estimates_by_customer' => 'customers#filter_estimates_by_customer'
get 'filter_invoices_by_customer' => 'customers#filter_invoices_by_customer'
# Nest Vehicles under customers # Nest Vehicles under customers
resources :customers do resources :customers do
resources :vehicles resources :vehicles
get :autocomplete_customer_name, :on => :collection get :autocomplete_customer_name, :on => :collection
get :autocomplete_customer_vehicles, :on => :collection
end end
#allow for just vehicles too #allow for just vehicles too