mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Added filter_vehicles_by_customer method
This commit is contained in:
@@ -144,6 +144,10 @@ class CustomersController < ApplicationController
|
||||
end
|
||||
end
|
||||
|
||||
def filter_vehicles_by_customer
|
||||
@filtered_vehicles = Customer.find(customer_id: params[:selected_customer]).vehicles
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def only_one_non_zero?( array )
|
||||
|
||||
Reference in New Issue
Block a user