add bill channel for req bill
This commit is contained in:
7
app/jobs/bill_broadcast_job.rb
Normal file
7
app/jobs/bill_broadcast_job.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class BillBroadcastJob < ApplicationJob
|
||||
queue_as :default
|
||||
|
||||
def perform(table)
|
||||
ActionCable.server.broadcast "bill_channel",table: table
|
||||
end
|
||||
end
|
||||
@@ -3,6 +3,5 @@ class OrderBroadcastJob < ApplicationJob
|
||||
|
||||
def perform(table)
|
||||
ActionCable.server.broadcast "order_channel",table: table
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -7,7 +7,7 @@ class OrderQueueProcessorJob < ApplicationJob
|
||||
|
||||
order = Order.find(order_id)
|
||||
assign_order = AssignedOrderItem.assigned_order_item_by_job(order_id)
|
||||
#Loop through the order stations and process the items
|
||||
|
||||
#Execute orders and send to order stations
|
||||
if order
|
||||
oqs = OrderQueueStation.new
|
||||
|
||||
Reference in New Issue
Block a user