fix for member
This commit is contained in:
@@ -150,7 +150,11 @@ class Crm::CustomersController < BaseCrmController
|
||||
# When paypar account no not exist in paypar
|
||||
if response["message"] == "Account has not exist."
|
||||
customer.destroy
|
||||
format.html { redirect_to '/origami/'+params[:sale_id]+'/customers', notice: 'Customer cannot created.' + response["message"]}
|
||||
if params[:sale_id]
|
||||
format.html { redirect_to '/origami/'+params[:sale_id]+'/customers', notice: 'Customer cannot created.' + response["message"]}
|
||||
else
|
||||
format.html { redirect_to crm_customers_path, notice: 'Customer cannot created.' + response["message"] }
|
||||
end
|
||||
end
|
||||
|
||||
if params[:sale_id]
|
||||
|
||||
@@ -411,7 +411,6 @@ class SalePayment < ApplicationRecord
|
||||
|
||||
end
|
||||
rebate_arr.push(data)
|
||||
|
||||
end
|
||||
|
||||
total_amount = rebate_prices - payparcost - overall_dis
|
||||
@@ -454,7 +453,6 @@ class SalePayment < ApplicationRecord
|
||||
response = { "status": false, "message": "Can't connect server"}
|
||||
end
|
||||
return response
|
||||
|
||||
end
|
||||
else
|
||||
response = { "status": "no_member", "message": "Not membership"}
|
||||
|
||||
Reference in New Issue
Block a user