Edit for checkin pdf
This commit is contained in:
@@ -70,6 +70,9 @@ class Origami::RequestBillsController < ApplicationController
|
||||
#check checkInOut pdf print
|
||||
check_booking = Booking.find_by_sale_id(@sale_id)
|
||||
checkout_time = Lookup.collection_of('checkout_time')
|
||||
terminal_id = DiningFacility.find_by_id(check_booking.dining_facility_id)
|
||||
terminal = CashierTerminal.find_by_id(terminal_id.zone_id)
|
||||
|
||||
if (!checkout_time.empty?) && (ENV["SERVER_MODE"] != "cloud") #no print in cloud server
|
||||
unique_code = "CheckInOutPdf"
|
||||
printer = PrintSetting.find_by_unique_code(unique_code)
|
||||
@@ -78,7 +81,7 @@ class Origami::RequestBillsController < ApplicationController
|
||||
order_queue_printer = Printer::OrderQueuePrinter.new(printer)
|
||||
|
||||
if !printer.nil?
|
||||
order_queue_printer.print_check_in_out(printer, check_booking, table)
|
||||
order_queue_printer.print_check_in_out(printer, terminal, check_booking, table)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user