move table & order item actioncable added

This commit is contained in:
yarzar_code
2020-07-29 11:36:43 +06:30
parent 366f98e51b
commit b74ef4bff1
2 changed files with 27 additions and 0 deletions

View File

@@ -211,6 +211,21 @@ class Printer::ReceiptPrinter < Printer::PrinterWorker
#no print in cloud server
self.print("tmp/print_move_table.pdf", oqs.printer_name)
end
ActionCable.server.broadcast("print_channel",
queue: oqs.station_name,
unique_code: print_settings.unique_code,
print_copies: print_settings.print_copies,
data: {
type: type,
body: {
to: to,
from: from,
date: date,
moved_by: moved_by,
order_items: order_items.as_json,
},
}
)
end
#Bill Receipt Print