add booking
This commit is contained in:
@@ -49,10 +49,15 @@ class Origami::SplitBillController < BaseOrigamiController
|
||||
end
|
||||
end
|
||||
else
|
||||
puts "new booking"
|
||||
puts "new order"
|
||||
puts "update order_id in order"
|
||||
puts "do process"
|
||||
if params[:type] == "Table"
|
||||
type = "TableBooking"
|
||||
else
|
||||
type = "RoomBooking"
|
||||
end
|
||||
|
||||
booking = Booking.create({:dining_facility_id => params[:dining_id],:type => type,
|
||||
:checkin_at => Time.now.utc, :checkin_by => current_user.name,
|
||||
:booking_status => "assign" })
|
||||
end
|
||||
|
||||
# Bind shift sale id to sale
|
||||
|
||||
Reference in New Issue
Block a user