Read NFC
This commit is contained in:
@@ -9,15 +9,25 @@ class Crm::CustomersController < BaseCrmController
|
||||
filter = params[:filter]
|
||||
filter_card_no = params[:filter_card_no]
|
||||
type = params[:type]
|
||||
puts "type :"
|
||||
puts type
|
||||
puts "filter :"
|
||||
puts filter
|
||||
puts "filter card no"
|
||||
puts filter_card_no
|
||||
@customer_update_phone_email_membertype =false
|
||||
if filter_card_no==""
|
||||
@crm_customers = Customer.all
|
||||
puts "Filter card no"
|
||||
elsif !filter_card_no.nil?
|
||||
@crm_customers=Customer.where("card_no=?",filter_card_no)
|
||||
puts "Null filter card no"
|
||||
elsif filter.nil? || filter_card_no==""
|
||||
@crm_customers = Customer.all
|
||||
puts "filter null filter card no nulll"
|
||||
else
|
||||
@crm_customers = Customer.search(filter)
|
||||
puts "else"
|
||||
# paymal_customer = Customer.search_paypar_account_no(filter)
|
||||
# search account no from paypar
|
||||
if type == "card"
|
||||
|
||||
Reference in New Issue
Block a user