add booking id in checkin process

This commit is contained in:
phyusin
2018-11-28 18:07:00 +06:30
parent 03c4410ea8
commit e5e62129ab

View File

@@ -140,7 +140,7 @@ class Api::CheckInProcessController < Api::ApiController
order_queue_printer.print_check_in_out(printer, cashier_terminal, booking, dining_facility)
end
end
render :json => { :status => true, :checkout_at => booking.checkout_at.utc.getlocal.strftime("%Y-%m-%d %H:%M") }
render :json => { :status => true, :booking_id => booking.booking_id, :checkout_at => booking.checkout_at.utc.getlocal.strftime("%Y-%m-%d %H:%M") }
else
render :json => { :status => true }
end