add shop detail info in inventory

This commit is contained in:
phyusin
2018-02-23 15:29:22 +06:30
parent 970814be94
commit 2dda29c5cc
5 changed files with 30 additions and 0 deletions

View File

@@ -3,4 +3,10 @@ class Inventory::InventoryController < BaseInventoryController
def index
@products = InventoryDefinition.all.active.order('created_at desc')
end
#Shop Name in Navbor
helper_method :shop_detail
def shop_detail
@shop = Shop.first
end
end