Edit booking_id erroe
This commit is contained in:
@@ -33,21 +33,22 @@ class Origami::CheckInProcessController < BaseOrigamiController
|
|||||||
@dining_facility.status = "occupied"
|
@dining_facility.status = "occupied"
|
||||||
@dining_facility.save!
|
@dining_facility.save!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if ENV["SERVER_MODE"] != "cloud" #no print in cloud server
|
||||||
|
printer = PrintSetting.find_by_unique_code("CheckInOutPdf")
|
||||||
|
unique_code = "CheckInOutPdf"
|
||||||
|
booking = Booking.find_by_booking_id(@booking.booking_id)
|
||||||
|
table = DiningFacility.find(params[:dining_id])
|
||||||
|
|
||||||
|
# print when complete click
|
||||||
|
order_queue_printer = Printer::OrderQueuePrinter.new(printer)
|
||||||
|
|
||||||
|
if !printer.nil?
|
||||||
|
order_queue_printer.print_check_in_out(printer, cashier_terminal, booking, table)
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if ENV["SERVER_MODE"] != "cloud" #no print in cloud server
|
|
||||||
printer = PrintSetting.find_by_unique_code("CheckInOutPdf")
|
|
||||||
unique_code = "CheckInOutPdf"
|
|
||||||
booking = Booking.find_by_booking_id(@booking.booking_id)
|
|
||||||
table = DiningFacility.find(params[:dining_id])
|
|
||||||
|
|
||||||
# print when complete click
|
|
||||||
order_queue_printer = Printer::OrderQueuePrinter.new(printer)
|
|
||||||
|
|
||||||
if !printer.nil?
|
|
||||||
order_queue_printer.print_check_in_out(printer, cashier_terminal, booking, table)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
respond = {:status => 'ok'}
|
respond = {:status => 'ok'}
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|||||||
Reference in New Issue
Block a user