update no table oqs print

This commit is contained in:
Aung Myo
2018-02-21 16:11:05 +06:30
parent c3af21d71c
commit 0302bb408b
6 changed files with 48 additions and 48 deletions

View File

@@ -1,7 +1,7 @@
class OrderQueueProcessorJob < ApplicationJob
queue_as :default
def perform(order_id, table_id,sale_id=nil)
def perform(order_id, table_id)
# Do something later
#Order ID
order = Order.find(order_id)
@@ -9,7 +9,7 @@ class OrderQueueProcessorJob < ApplicationJob
#Execute orders and send to order stations
if order
oqs = OrderQueueStation.new
oqs.process_order(order, table_id,sale_id)
oqs.process_order(order, table_id)
end
assign_order = AssignedOrderItem.assigned_order_item_by_job(order_id)