update seed for shop and oqs

This commit is contained in:
Yan
2017-06-26 19:28:02 +06:30
parent 6afec4a482
commit 99ac82c888
2 changed files with 5 additions and 4 deletions

View File

@@ -46,9 +46,10 @@ class OrderQueueStation < ApplicationRecord
# Auto Printing
# ToDo per item per printer
if oqs.auto_print && is_auto_printed == false
puts oqs_order_items.length
print_slip(oqs, order, oqs_order_items)
is_auto_printed = true
if oqs_order_items.length > 0
print_slip(oqs, order, oqs_order_items)
is_auto_printed = true
end
end
end
end