change UI for all settings module

This commit is contained in:
phyusin
2017-11-22 16:28:17 +06:30
parent fb53f2cb75
commit afcf7725f5
33 changed files with 903 additions and 769 deletions

View File

@@ -13,8 +13,9 @@ class MenuItem < ApplicationRecord
has_many :menu_item_sets
has_many :item_sets, through: :menu_item_sets
validates_presence_of :name, :type, :min_qty, :taxable,:account_id
validates_presence_of :item_code, :name, :type, :min_qty, :taxable,:account_id
validates_uniqueness_of :item_code
default_scope { order('item_code asc') }
scope :simple_menu_item, -> { where(type: 'SimpleMenuItem') }