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

@@ -87,7 +87,7 @@ class Printer::CashierStationPrinter < Printer::PrinterWorker
if print_settings.unique_code == "SaleItemsPdf"
pdf = SaleItemsPdf.new(print_settings, shop_details, period_name, type, account, from_date, to_date, shift_name, sale_items, total_other_charges)
ActionCable.server.broadcast("print_channel",
ActionCable.server.broadcast("print_channel_#{Shop.current_shop.shop_code}",
queue: 'Cashier',
unique_code: print_settings.unique_code,
print_copies: print_settings.print_copies,