customer update from doemal order
This commit is contained in:
@@ -22,7 +22,11 @@ class OrderReservation < ApplicationRecord
|
||||
else
|
||||
gender = "Male"
|
||||
end
|
||||
customer = Customer.new
|
||||
if params[:customer_id].nil?
|
||||
customer = Customer.find(params[:customer_id])
|
||||
else
|
||||
customer = Customer.new
|
||||
end
|
||||
customer.name = params[:name]
|
||||
customer.email = params[:email]
|
||||
customer.contact_no = params[:contact_no] ? params[:contact_no] : ''
|
||||
|
||||
Reference in New Issue
Block a user