price 0 print

This commit is contained in:
Yan
2017-11-23 12:14:14 +06:30
parent 3261fef3cf
commit f4898017d1
7 changed files with 49 additions and 44 deletions

View File

@@ -5,14 +5,15 @@ class OrderQueueProcessorJob < ApplicationJob
# Do something later
#Order ID
order = Order.find(order_id)
assign_order = AssignedOrderItem.assigned_order_item_by_job(order_id)
order = Order.find(order_id)
#Execute orders and send to order stations
if order
oqs = OrderQueueStation.new
oqs.process_order(order, table_id)
end
assign_order = AssignedOrderItem.assigned_order_item_by_job(order_id)
ActionCable.server.broadcast "order_queue_station_channel",order: assign_order
end