order submission and order queue submission basic done

This commit is contained in:
Min Zeya Phyo
2017-04-16 16:52:04 +06:30
parent 63c5c97f24
commit 30774b4efd
11 changed files with 89 additions and 31 deletions

View File

@@ -1,16 +1,16 @@
class OrderQueueProcessorJob < ApplicationJob
queue_as :default
def perform(:order_id)
def perform(order_id)
# 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