crm updated

This commit is contained in:
Yan
2017-07-26 18:39:46 +06:30
parent 7bfe8b1578
commit ad2dfa2ee0
6 changed files with 24 additions and 25 deletions

View File

@@ -215,14 +215,11 @@ end
end
if response["status"] == true
customer = Customer.find(@crm_customer.customer_id)
status = customer.update_attributes(membership_id: response["customer_datas"]["id"],membership_type:member_group_id )
format.html { redirect_to crm_customers_path, notice: 'Customer was successfully updated'}
else
customer = Customer.find(@crm_customer.customer_id)
# Check membership id and bind to user
if response["membership_id"] != nil