Edit in bill and request bill controller

This commit is contained in:
San Wai Lwin
2018-08-07 14:41:18 +06:30
parent e0d330ef49
commit e9b26f1684
4 changed files with 50 additions and 49 deletions

View File

@@ -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