change align and check booking ID
This commit is contained in:
@@ -99,11 +99,11 @@ class Crm::DiningQueuesController < BaseCrmController
|
||||
table_id = params[:table_id]
|
||||
|
||||
dining_facility = DiningFacility.find(params[:table_id])
|
||||
if dining_facility.type == "Table"
|
||||
# if dining_facility.type == "Table"
|
||||
type = "TableBooking"
|
||||
else
|
||||
type = "RoomBooking"
|
||||
end
|
||||
# else
|
||||
# type = "RoomBooking"
|
||||
# end
|
||||
|
||||
booking = Booking.create({:dining_facility_id => params[:table_id],:type => type,
|
||||
:checkin_at => Time.now.utc,:customer_id => queue.customer_id,:booking_status => "assign" })
|
||||
|
||||
Reference in New Issue
Block a user