edit for shop_code query
This commit is contained in:
@@ -91,7 +91,6 @@ class Inventory::InventoryDefinitionsController < BaseInventoryController
|
||||
format.json { head :no_content }
|
||||
end
|
||||
|
||||
# inventory = InventoryDefinition.find_by_id_and_shop_code(params[:id],@shop.shop_code)
|
||||
StockJournal.delete_stock_journal(inventory.item_code,@shop)
|
||||
StockCheckItem.delete_stock_check_item(inventory.item_code,@shop)
|
||||
if !inventory.nil?
|
||||
|
||||
Reference in New Issue
Block a user