check menu is_available, survey id and check status with sale items SUM in receipBill
This commit is contained in:
@@ -30,10 +30,19 @@ class OrderReservation < ApplicationRecord
|
||||
customer.address = params[:address] ? params[:address] : ''
|
||||
customer.date_of_birth = params[:date_of_birth] ? Time.parse(params[:date_of_birth]).strftime("%Y-%m-%d") : ''
|
||||
customer.membership_id = params[:membership_id]
|
||||
customer.customer_type = "Takeaway"
|
||||
customer.customer_type = "Doemal"
|
||||
customer.tax_profiles = ["2"]
|
||||
customer.save
|
||||
|
||||
# unless customer.valid?
|
||||
# render json: {
|
||||
# status: 422,
|
||||
# message: "Validation error",
|
||||
# errors: customer.errors
|
||||
# }.to_json
|
||||
# return
|
||||
# end
|
||||
|
||||
return customer
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user