payment api
This commit is contained in:
@@ -31,7 +31,7 @@ class Api::OrdersController < ActionController::API
|
||||
@order.guest = params[:guest_info]
|
||||
@order.table_id = params[:table_id]
|
||||
@order.new_booking = true
|
||||
@order.employee_name = "Test User"
|
||||
@order.employee_name = current_login_employee.name
|
||||
|
||||
|
||||
#Create Table Booking or Room Booking
|
||||
@@ -41,7 +41,7 @@ class Api::OrdersController < ActionController::API
|
||||
end
|
||||
|
||||
@status = @order.generate
|
||||
|
||||
|
||||
# rescue Exception => error
|
||||
# @status = false
|
||||
# @error_messages = "Exception has occurs on System"
|
||||
|
||||
Reference in New Issue
Block a user