edit in check time

This commit is contained in:
San Wai Lwin
2018-08-14 15:22:49 +06:30
parent 671aa155cd
commit 61e4b930c8
7 changed files with 20 additions and 25 deletions

View File

@@ -63,8 +63,8 @@ class Api::BillController < Api::ApiController
#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)
terminal = DiningFacility.find_by_id(check_booking.dining_facility_id)
cashier_terminal = CashierTerminal.find_by_id(terminal.zone_id)
if (!checkout_time.empty?) && (ENV["SERVER_MODE"] != "cloud") #no print in cloud server
@@ -75,7 +75,7 @@ class Api::BillController < Api::ApiController
order_queue_printer = Printer::OrderQueuePrinter.new(printer)
if !printer.nil?
order_queue_printer.print_check_in_out(printer,terminal, check_booking, table)
order_queue_printer.print_check_in_out(printer,cashier_terminal , check_booking, table)
end
end