update receipt bill payment

This commit is contained in:
Aung Myo
2017-06-21 17:37:16 +06:30
parent 7c5456d712
commit d2549df2e9
8 changed files with 22 additions and 13 deletions

View File

@@ -64,7 +64,7 @@ class Customer < ApplicationRecord
def self.search(search)
if search
# find(:all, :conditions => ['name LIKE ? OR contact_no LIKE ?', "%#{search}%", "%#{search}%"])
where("name LIKE ? OR contact_no LIKE ?", "%#{search}%", "%#{search}%",)
where("name LIKE ? OR contact_no LIKE ? OR card_no LIKE ?", "%#{search}%", "%#{search}%",)
else
find(:all)
end