update print pay in qs

This commit is contained in:
Aung Myo
2018-02-21 12:34:03 +06:30
parent 4ebe353182
commit 4455b03e8a
6 changed files with 73 additions and 54 deletions

View File

@@ -1,7 +1,7 @@
class OrderQueueProcessorJob < ApplicationJob
queue_as :default
def perform(order_id, table_id)
def perform(order_id, table_id,sale_id=nil)
# 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)
oqs.process_order(order, table_id,sale_id)
end
assign_order = AssignedOrderItem.assigned_order_item_by_job(order_id)