Edit in bill and request bill controller
This commit is contained in:
@@ -45,21 +45,21 @@ class Api::BillController < Api::ApiController
|
||||
@sale_id = booking.sale_id
|
||||
@sale_data = Sale.find_by_sale_id(@sale_id)
|
||||
end
|
||||
|
||||
if ENV["SERVER_MODE"] != "cloud" #no print in cloud server
|
||||
|
||||
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)
|
||||
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)
|
||||
|
||||
# print when complete click
|
||||
order_queue_printer = Printer::OrderQueuePrinter.new(printer)
|
||||
|
||||
if !printer.nil?
|
||||
order_queue_printer.print_check_in_out(printer, booking, table)
|
||||
end
|
||||
end
|
||||
|
||||
elsif (params[:order_id])
|
||||
order = Order.find(params[:order_id])
|
||||
|
||||
Reference in New Issue
Block a user