menu items
This commit is contained in:
@@ -6,6 +6,11 @@ class MenuItem < ApplicationRecord
|
||||
|
||||
default_scope { order('item_code asc') }
|
||||
|
||||
def self.collection
|
||||
MenuItem.select("id, name").map { |e| [e.name, e.id] }
|
||||
end
|
||||
|
||||
|
||||
def self.search_by_item_code(item_code)
|
||||
menu_item_hash = Hash.new
|
||||
mt_instance = MenuItemInstance.find_by_item_instance_code(item_code)
|
||||
|
||||
Reference in New Issue
Block a user