order queue processing

This commit is contained in:
Min Zeya Phyo
2017-04-14 15:50:17 +06:30
parent 5b1bb6f6cd
commit 7cc2ac395d
22 changed files with 246 additions and 33 deletions

View File

@@ -5,10 +5,12 @@ class OrderQueueProcessorJob < ApplicationJob
# Do something later
#Order ID
order = Order.find(order_id)
#Loop through the order stations and process the items
#Execute orders and send to order stations
if order
oqs = OrderQueueStation.new
oqs.process_order(order)
end
end
end