mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 09:10:43 -04:00
Update customer.rb
This commit is contained in:
1 parent
33db0a53ba
commit
b093f6136e
1 file changed
+1
-1
@@ -146,7 +146,7 @@ class Customer < ActiveRecord::Base
|
|||||||
|
|
||||||
if customers.empty?
|
if customers.empty?
|
||||||
service = Qbo.get_base(:customer).service
|
service = Qbo.get_base(:customer).service
|
||||||
results = service.query("Select Id From Customer Where PrimaryPhone LIKE '%#{search}%' OR Mobile LIKE '%#{search}%'")
|
results = service.query("Select Id From Customer Where PrimaryPhone LIKE '%#{search}%' AND Mobile LIKE '%#{search}%'")
|
||||||
|
|
||||||
results.each do |customer|
|
results.each do |customer|
|
||||||
customers << Customer.find_by_id(customer.id)
|
customers << Customer.find_by_id(customer.id)
|
||||||
|
|||||||
Reference in new issue
Block a user