shop code
This commit is contained in:
@@ -34,7 +34,7 @@ class Inventory::StockChecksController < BaseInventoryController
|
||||
check = params[:data]
|
||||
stockCheck = StockCheck.find_by_id(check)
|
||||
stockCheck.stock_check_items.each do |item|
|
||||
StockJournal.from_stock_check(item,Shop.current_shop)
|
||||
StockJournal.from_stock_check(item,@shop)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -46,7 +46,6 @@ class Inventory::StockChecksController < BaseInventoryController
|
||||
unique_code = 'StockCheckPdf'
|
||||
|
||||
|
||||
shop_details = Shop.current_shop
|
||||
checker = Employee.find(stockcheck.check_by)
|
||||
print_settings = PrintSetting.find_by_unique_code(unique_code)
|
||||
if !print_settings.nil?
|
||||
@@ -66,12 +65,6 @@ class Inventory::StockChecksController < BaseInventoryController
|
||||
end
|
||||
end
|
||||
|
||||
#Shop Name in Navbor
|
||||
helper_method :shop_detail
|
||||
def shop_detail
|
||||
@shop = Shop.current_shop
|
||||
end
|
||||
|
||||
# before_action :set_stock_check, only: [:show, :edit, :update, :destroy]
|
||||
|
||||
# GET /stock_checks
|
||||
|
||||
Reference in New Issue
Block a user