update booking status and view

This commit is contained in:
Aung Myo
2017-06-03 13:32:13 +06:30
parent 2374fedca5
commit 7529d23147
4 changed files with 13 additions and 8 deletions

View File

@@ -23,7 +23,7 @@ class Order < ApplicationRecord
if self.new_booking
booking = Booking.create({:dining_facility_id => self.table_id,:type => "TableBooking",
:checkin_at => Time.now.utc, :checkin_by => self.employee_name,
:booking_status => "new" })
:booking_status => "assign" })
else
if (self.booking_id.to_i > 0 )
booking = Booking.find(self.booking_id)