shop code
This commit is contained in:
@@ -38,7 +38,7 @@ class Crm::CustomersController < BaseCrmController
|
||||
@crm_customers.membership_type = response["customer_data"]["member_group_id"]
|
||||
@crm_customers.customer_type = "Dinein"
|
||||
@crm_customers.tax_profiles = ["1", "2"]
|
||||
@crm_customers.shop_code = Shop.current_shop.shop_code
|
||||
@crm_customers.shop_code = @shop.shop_code
|
||||
@crm_customers.save
|
||||
@crm_customers = Customer.search(filter)
|
||||
flash[:member_notice]='Customer was successfully created.'
|
||||
@@ -130,7 +130,7 @@ class Crm::CustomersController < BaseCrmController
|
||||
|
||||
params[:type] = nil
|
||||
params[:customer_id] = params[:id]
|
||||
@credit_sales = SalePayment.get_credit_sales(params,Shop.current_shop.shop_code)
|
||||
@credit_sales = SalePayment.get_credit_sales(params,@shop.shop_code)
|
||||
|
||||
#get customer amount
|
||||
@customer = Customer.find(params[:id])
|
||||
@@ -255,7 +255,7 @@ class Crm::CustomersController < BaseCrmController
|
||||
if @checked_contact.nil?
|
||||
respond_to do |format|
|
||||
@crm_customers = Customer.new(customer_params)
|
||||
@crm_customers.shop_code = Shop.current_shop.shop_code
|
||||
@crm_customers.shop_code = @shop.shop_code
|
||||
if @crm_customers.save
|
||||
# update tax profile
|
||||
customer = Customer.find(@crm_customers.customer_id)
|
||||
|
||||
Reference in New Issue
Block a user