update jade integration card use for all shop
This commit is contained in:
@@ -33,8 +33,6 @@ class Crm::CustomersController < BaseCrmController
|
||||
end
|
||||
end
|
||||
end
|
||||
puts @crm_customers
|
||||
#@crm_customers = Customer.all
|
||||
@crm_customers = Kaminari.paginate_array(@crm_customers).page(params[:page]).per(50)
|
||||
@crm_customer = Customer.new
|
||||
@count_customer = Customer.count_customer
|
||||
|
||||
@@ -36,12 +36,13 @@ class Origami::CustomersController < BaseOrigamiController
|
||||
@crm_customers.customer_type = "Dinein"
|
||||
@crm_customers.tax_profiles = ["1", "2"]
|
||||
@crm_customers.save
|
||||
@crm_customers = Customer.search(filter)
|
||||
else
|
||||
@crm_customers = {:status=> response["status"],:message=>response["message"] }
|
||||
@crm_customers = [{"customer_id": response["status"],"message": response["message"] }]
|
||||
end
|
||||
end
|
||||
end
|
||||
puts @crm_customers
|
||||
|
||||
render :json => @crm_customers.to_json
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user