check duplicate paypar account no issue

This commit is contained in:
phyusin
2018-12-27 16:08:34 +06:30
parent 7a60ab91c5
commit 398f97f244
4 changed files with 46 additions and 8 deletions

View File

@@ -45,6 +45,9 @@ class Crm::CustomersController < BaseCrmController
@filter = filter
#get paypar accountno
@paypar_accountno = Customer.where("paypar_account_no IS NOT NULL AND paypar_account_no != ''").pluck("paypar_account_no")
#for create customer on/off
@create_flag = true
lookup_customer = Lookup.collection_of('customer_settings')

View File

@@ -93,7 +93,8 @@ class Origami::CustomersController < BaseOrigamiController
# @crm_customer.valid?
# end
@membership_types = Lookup.collection_of("member_group_type")
#get paypar accountno
@paypar_accountno = Customer.where("paypar_account_no IS NOT NULL AND paypar_account_no != ''").pluck("paypar_account_no")
#for create customer on/off
@create_flag = true
lookup_customer = Lookup.collection_of('customer_settings')