change dob
This commit is contained in:
@@ -63,7 +63,7 @@ class Crm::CustomersController < BaseCrmController
|
|||||||
name = customer_params[:name]
|
name = customer_params[:name]
|
||||||
phone = customer_params[:contact_no]
|
phone = customer_params[:contact_no]
|
||||||
email = customer_params[:email]
|
email = customer_params[:email]
|
||||||
date_of_birth = customer_params[:date_of_birth]
|
dob = customer_params[:date_of_birth]
|
||||||
member_group_id = params[:member_group_id]
|
member_group_id = params[:member_group_id]
|
||||||
|
|
||||||
membership = MembershipSetting.find_by_membership_type("paypar_url")
|
membership = MembershipSetting.find_by_membership_type("paypar_url")
|
||||||
@@ -72,7 +72,7 @@ class Crm::CustomersController < BaseCrmController
|
|||||||
url = membership.gateway_url.to_s + memberaction.gateway_url.to_s
|
url = membership.gateway_url.to_s + memberaction.gateway_url.to_s
|
||||||
|
|
||||||
response = HTTParty.post(url, :body => { name: name,phone: phone,email: email,
|
response = HTTParty.post(url, :body => { name: name,phone: phone,email: email,
|
||||||
date_of_birth: date_of_birth,
|
dob: dob,
|
||||||
member_group_id: member_group_id,merchant_uid:merchant_uid}.to_json,
|
member_group_id: member_group_id,merchant_uid:merchant_uid}.to_json,
|
||||||
:headers => {
|
:headers => {
|
||||||
'Content-Type' => 'application/json',
|
'Content-Type' => 'application/json',
|
||||||
@@ -123,7 +123,7 @@ end
|
|||||||
name = customer_params[:name]
|
name = customer_params[:name]
|
||||||
phone = customer_params[:contact_no]
|
phone = customer_params[:contact_no]
|
||||||
email = customer_params[:email]
|
email = customer_params[:email]
|
||||||
date_of_birth = customer_params[:date_of_birth]
|
dob = customer_params[:date_of_birth]
|
||||||
id = @crm_customer.membership_id
|
id = @crm_customer.membership_id
|
||||||
member_group_id = params[:member_group_id]
|
member_group_id = params[:member_group_id]
|
||||||
|
|
||||||
@@ -133,7 +133,7 @@ end
|
|||||||
url = membership.gateway_url.to_s + memberaction.gateway_url.to_s
|
url = membership.gateway_url.to_s + memberaction.gateway_url.to_s
|
||||||
|
|
||||||
response = HTTParty.post(url, :body => { name: name,phone: phone,email: email,
|
response = HTTParty.post(url, :body => { name: name,phone: phone,email: email,
|
||||||
date_of_birth: date_of_birth,
|
dob: dob,
|
||||||
id: id,member_group_id:member_group_id,merchant_uid:merchant_uid}.to_json,
|
id: id,member_group_id:member_group_id,merchant_uid:merchant_uid}.to_json,
|
||||||
:headers => {
|
:headers => {
|
||||||
'Content-Type' => 'application/json',
|
'Content-Type' => 'application/json',
|
||||||
|
|||||||
@@ -28,9 +28,6 @@ class Origami::CustomersController < BaseOrigamiController
|
|||||||
# if @membership["status"] == true
|
# if @membership["status"] == true
|
||||||
# @member_group = @membership["data"]
|
# @member_group = @membership["data"]
|
||||||
# end
|
# end
|
||||||
puts "Errrrrrrrrrrrrrrrrr"
|
|
||||||
puts @crm_customer.new_record?
|
|
||||||
|
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
# format.html { render :template => "crm/customers/index" }
|
# format.html { render :template => "crm/customers/index" }
|
||||||
|
|||||||
Reference in New Issue
Block a user