move table & order item actioncable added
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user