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

@@ -4,17 +4,19 @@ class Lookup < ApplicationRecord
{'Employee Roles' => 'employee_roles',
'Dining Facilities Status' => 'dining_facilities_status',
'Menu Item Type' => 'menu_item_type',
'Menu Item Attribute Type' => 'menu_item_attribute_type',
'Order Type' => 'order_type',
'Order Source' => 'order_source',
'Order Status' => 'order_status',
'Order Item Status' => 'order_item_status',
'Sale Status' => 'sales_status',
'Payment Status' => 'payment_status',
'Payment Methods' => 'payment_methods'}
'Payment Methods' => 'payment_methods',
"Gateway Communication Type" => "gateway_communication_type"}
end
def self.collection_of(type)
Lookup.select("name, value").where("lookup_type" => type ).map { |l| [l.name, l.value] }
Lookup.select("name, value").where("lookup_type" => type ).map { |l| [l.name, l.value] }
end
end