add action cable for call waiter,stock check & check in out

This commit is contained in:
yarzar_code
2020-08-25 14:18:51 +06:30
parent bd65edcba3
commit c7cd353ba2
4 changed files with 45 additions and 3 deletions

View File

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