Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant
This commit is contained in:
@@ -69,16 +69,15 @@ class Origami::RequestBillsController < ApplicationController
|
||||
else
|
||||
|
||||
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(bk_order.booking_id)
|
||||
|
||||
unique_code = "CheckInOutPdf"
|
||||
printer = PrintSetting.find_by_unique_code(unique_code)
|
||||
|
||||
# print when complete click
|
||||
order_queue_printer = Printer::OrderQueuePrinter.new(printer)
|
||||
|
||||
if !printer.nil?
|
||||
order_queue_printer.print_check_in_out(printer, booking, table)
|
||||
order_queue_printer.print_check_in_out(printer, check_booking, table)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user