From e5e62129ab1ad545a7e8874f24add0e493fe2a0a Mon Sep 17 00:00:00 2001 From: phyusin Date: Wed, 28 Nov 2018 18:07:00 +0630 Subject: [PATCH] add booking id in checkin process --- app/controllers/api/check_in_process_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/check_in_process_controller.rb b/app/controllers/api/check_in_process_controller.rb index a9ea01be..7609dd79 100644 --- a/app/controllers/api/check_in_process_controller.rb +++ b/app/controllers/api/check_in_process_controller.rb @@ -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