merge with r-19
This commit is contained in:
@@ -86,10 +86,10 @@ class Inventory::InventoryDefinitionsController < BaseInventoryController
|
||||
def destroy
|
||||
inventory = InventoryDefinition.find_by_id_and_shop_code(params[:id],@shop.shop_code)
|
||||
@inventory_definition.destroy
|
||||
# respond_to do |format|
|
||||
# format.html { redirect_to inventory_inventory_definitions_url, notice: 'Inventory definition was successfully destroyed.' }
|
||||
# format.json { head :no_content }
|
||||
# end
|
||||
respond_to do |format|
|
||||
format.html { redirect_to inventory_inventory_definitions_url, notice: 'Inventory definition was successfully destroyed.' }
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user