fix conflict
This commit is contained in:
@@ -81,10 +81,10 @@ class Crm::CustomersController < BaseCrmController
|
||||
|
||||
@membership_types = Lookup.collection_of("member_group_type")
|
||||
|
||||
# @taxes = TaxProfile.all
|
||||
# @taxes =TaxProfile.unscoped.select("id,(SELECT name from lookups where lookup_type='tax_profiles') as name")
|
||||
@taxes = TaxProfile.unscoped.select("id, (CONCAT(name,'(',(SELECT name FROM lookups WHERE lookup_type='tax_profiles' AND value=group_type),')')) as name")
|
||||
.order("group_type ASC,order_by ASC")
|
||||
# @taxes = TaxProfile.where(:group_type => 'cashier')
|
||||
@taxes = TaxProfile.unscope(:order).select("tax_profiles.id, CONCAT(tax_profiles.name, '(', lookups.name, ')') as name")
|
||||
.joins(:lookup)
|
||||
.order("group_type ASC, order_by ASC")
|
||||
|
||||
@filter = filter
|
||||
|
||||
@@ -171,15 +171,33 @@ class Crm::CustomersController < BaseCrmController
|
||||
nrc = @customer.nrc_no
|
||||
card_no = @customer.card_no
|
||||
paypar_account_no = @customer.paypar_account_no
|
||||
<<<<<<< HEAD
|
||||
id = @customer.membership_id
|
||||
member_group_id = @customer.membership_type
|
||||
# if !id.present? && !member_group_id.nil?
|
||||
=======
|
||||
id = @crm_customer.membership_id
|
||||
member_group_id = @customer.membership_type
|
||||
if !id.present? && !member_group_id.nil?
|
||||
>>>>>>> d87ffee65b491cc164fa8b6aba6a385da646f18f
|
||||
membership = MembershipSetting.find_by_membership_type("paypar_url")
|
||||
memberaction = MembershipAction.find_by_membership_type("create_membership_customer")
|
||||
merchant_uid = memberaction.merchant_account_id.to_s
|
||||
auth_token = memberaction.auth_token.to_s
|
||||
url = membership.gateway_url.to_s + memberaction.gateway_url.to_s
|
||||
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
member_params = { name: name,phone: phone,email: email,
|
||||
dob: dob,address: address,nrc:nrc,card_no:card_no,
|
||||
member_group_id: member_group_id,
|
||||
id:id,
|
||||
merchant_uid:merchant_uid,auth_token:auth_token}.to_json
|
||||
|
||||
# Check for paypar account exists
|
||||
# if paypar_account_no != nil || paypar_account_no != ''
|
||||
if paypar_account_no.present?
|
||||
>>>>>>> d87ffee65b491cc164fa8b6aba6a385da646f18f
|
||||
member_params = { name: name,phone: phone,email: email,
|
||||
dob: dob,address: address,nrc:nrc,card_no:card_no,
|
||||
paypar_account_no: paypar_account_no,
|
||||
|
||||
Reference in New Issue
Block a user