add action cable for call waiter,stock check & check in out
This commit is contained in:
@@ -177,6 +177,16 @@ class Printer::OrderQueuePrinter < Printer::PrinterWorker
|
||||
filename = "tmp/check_in_out_#{sale_id}" + ".pdf"
|
||||
|
||||
pdf = CheckInOutPdf.new(print_settings,booking, table)
|
||||
ActionCable.server.broadcast("print_channel_#{Shop.current_shop.shop_code}",
|
||||
queue: cashier_terminal.printer_name,
|
||||
unique_code: print_settings.unique_code,
|
||||
print_copies: print_settings.print_copies,
|
||||
data: {
|
||||
booking: booking,
|
||||
table: table,
|
||||
table_type: table.type,
|
||||
}
|
||||
)
|
||||
print_setting = PrintSetting.all
|
||||
|
||||
# if order_item[0].price != 0
|
||||
|
||||
Reference in New Issue
Block a user