diff --git a/app/assets/stylesheets/CRM.scss b/app/assets/stylesheets/CRM.scss index 4f14b531..82b84afd 100644 --- a/app/assets/stylesheets/CRM.scss +++ b/app/assets/stylesheets/CRM.scss @@ -73,7 +73,7 @@ position: relative; left: 42%; top: 30%; - background-color: #d9534f; + background-color: #32ad1a; color: #fff; text-align: center; width: 200px; diff --git a/app/models/customer.rb b/app/models/customer.rb index 83a652d3..002bde6c 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -194,7 +194,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 ? OR card_no LIKE ?", "%#{search}%", "%#{search}%", "%#{search}%",) + where("name LIKE ? OR contact_no LIKE ? OR card_no LIKE ? OR paypar_account_no ='#{search}'", "%#{search}%", "%#{search}%", "%#{search}%",) else find(:all) end diff --git a/app/views/crm/customers/_new_form.html.erb b/app/views/crm/customers/_new_form.html.erb index b51aac36..41130f76 100644 --- a/app/views/crm/customers/_new_form.html.erb +++ b/app/views/crm/customers/_new_form.html.erb @@ -128,12 +128,15 @@ \ No newline at end of file diff --git a/app/views/crm/customers/index.html.erb b/app/views/crm/customers/index.html.erb index 955395ef..53212f8a 100644 --- a/app/views/crm/customers/index.html.erb +++ b/app/views/crm/customers/index.html.erb @@ -22,10 +22,11 @@