update inventory form
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user