update inventory form

This commit is contained in:
Aung Myo
2018-09-17 11:12:12 +06:30
parent 85fcd43ac2
commit 63fe7591bf
4 changed files with 655 additions and 100 deletions

View File

@@ -14,6 +14,8 @@ class Inventory::InventoryDefinitionsController < BaseInventoryController
# GET /inventory_definitions/new
def new
@menus = Menu.all
@menu = MenuCategory.active.where("menu_id =#{@menus[0].id}").order('order_by asc')
@inventory_definition = InventoryDefinition.new
end
@@ -42,6 +44,8 @@ class Inventory::InventoryDefinitionsController < BaseInventoryController
format.json { render json: @inventory_definition.errors, status: :unprocessable_entity }
end
end
end
# PATCH/PUT /inventory_definitions/1