mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Added routes for filtering estimates & invoices
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user