print_channel with shop_code
This commit is contained in:
@@ -15,7 +15,8 @@ class Printer::OrderQueuePrinter < Printer::PrinterWorker
|
||||
pdf = print_settings.unique_code.constantize.new(print_settings,order_item[0], print_status, options, oqs.use_alternate_name, before_updated_qty)
|
||||
booking_id = Booking.get_booking_id(order_id)
|
||||
# end
|
||||
ActionCable.server.broadcast("print_channel",
|
||||
puts "print_channel_#{Shop.current_shop.shop_code}"
|
||||
ActionCable.server.broadcast("print_channel_#{Shop.current_shop.shop_code}",
|
||||
queue: oqs.station_name,
|
||||
unique_code: print_settings.unique_code,
|
||||
print_copies: print_settings.print_copies,
|
||||
@@ -98,7 +99,9 @@ class Printer::OrderQueuePrinter < Printer::PrinterWorker
|
||||
self.print(filename, oqs.printer_name)
|
||||
end
|
||||
booking_id = Booking.get_booking_id(order_id) #order[0].order_id
|
||||
ActionCable.server.broadcast("print_channel",
|
||||
puts "printing>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
|
||||
puts "print_channel_#{Shop.current_shop.shop_code}"
|
||||
ActionCable.server.broadcast("print_channel_#{Shop.current_shop.shop_code}",
|
||||
queue: oqs.station_name,
|
||||
unique_code: print_settings.unique_code,
|
||||
print_copies: print_settings.print_copies,
|
||||
|
||||
Reference in New Issue
Block a user