Read NFC
This commit is contained in:
@@ -8,7 +8,6 @@ class Inventory::StockChecksController < BaseInventoryController
|
||||
.joins("JOIN menu_item_instances mii ON mii.item_instance_code = inventory_definitions.item_code" +
|
||||
" JOIN menu_items mi ON mi.id = mii.menu_item_id" +
|
||||
" JOIN menu_categories mc ON mc.id = mi.menu_category_id ")
|
||||
.where("inventory_definitions.shop_code='#{@shop.shop_code}'")
|
||||
.group("mi.menu_category_id")
|
||||
.order("mi.menu_category_id desc")
|
||||
unless !@category.nil?
|
||||
@@ -24,7 +23,7 @@ class Inventory::StockChecksController < BaseInventoryController
|
||||
end
|
||||
|
||||
def show
|
||||
@check = StockCheck.find_by_id_and_shop_code(params[:id],@shop.shop_code)
|
||||
@check = StockCheck.find_by_id(params[:id])
|
||||
|
||||
@stock_check_items = StockCheckItem.get_items_with_category(params[:id])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user