add customer at first

This commit is contained in:
yarzar_code
2020-08-07 18:36:06 +06:30
parent 82925881f7
commit b24e34534c
10 changed files with 376 additions and 483 deletions

View File

@@ -33,7 +33,7 @@ class Foodcourt::CustomersController < BaseFoodcourtController
@crm_customers.membership_id = response["customer_data"]["id"]
@crm_customers.membership_type = response["customer_data"]["member_group_id"]
@crm_customers.customer_type = "Dinein"
@crm_customers.tax_profiles = ["1", "2"]
@crm_customers.tax_profiles = TaxProfile.where(group_type: 'food_court').pluck(:id)
@crm_customers.save
@crm_customers = Customer.search(filter)
else