update
This commit is contained in:
@@ -322,8 +322,7 @@ class Order < ApplicationRecord
|
||||
|
||||
def self.search(search)
|
||||
if search
|
||||
# find(:all, :conditions => ['name LIKE ? OR contact_no LIKE ?', "%#{search}%", "%#{search}%"])
|
||||
where("order_id LIKE ?", "%#{search}%")
|
||||
where("order_id LIKE ? OR item_count ='#{search}'","%#{search}%",)
|
||||
else
|
||||
find(:all)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user