add current login name in checkin process
This commit is contained in:
@@ -49,9 +49,9 @@ class Api::CheckInProcessController < Api::ApiController
|
||||
else
|
||||
type = "RoomBooking"
|
||||
end
|
||||
|
||||
|
||||
booking = Booking.create({:dining_facility_id => params[:dining_id],:type => type,
|
||||
:checkin_at => Time.now.utc,:checkout_at =>checkout_at, :booking_status => "assign" })
|
||||
:checkin_by=>get_cashier[0].name,:checkin_at => Time.now.utc,:checkout_at =>checkout_at, :booking_status => "assign" })
|
||||
booking.save!
|
||||
|
||||
render :json => { :status => true, :checkout_at => booking.checkout_at.utc.strftime("%Y-%m-%d %H:%M") }
|
||||
|
||||
@@ -25,9 +25,9 @@ class Origami::CheckInProcessController < BaseOrigamiController
|
||||
else
|
||||
type = "RoomBooking"
|
||||
end
|
||||
|
||||
|
||||
@booking = Booking.create({:dining_facility_id => params[:dining_id],:type => type,
|
||||
:checkin_at => Time.now.utc,:checkout_at =>checkout_at, :booking_status => "assign" })
|
||||
:checkin_by=>current_login_employee.name,:checkin_at => Time.now.utc,:checkout_at =>checkout_at, :booking_status => "assign" })
|
||||
@booking.save!
|
||||
|
||||
respond = {:status => 'ok'}
|
||||
|
||||
Reference in New Issue
Block a user