print_channel with shop_code

This commit is contained in:
Thein Lin Kyaw
2020-08-06 14:05:20 +06:30
parent 4a2dd294ab
commit 61a1189083
6 changed files with 11 additions and 8 deletions

View File

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