Cleanup StockArticle creation during delivery

This commit is contained in:
Julius 2013-06-11 15:05:19 +02:00
parent e28f3eda65
commit 49cfa9aded
4 changed files with 10 additions and 20 deletions

View file

@ -87,20 +87,6 @@ class DeliveriesController < ApplicationController
else
render :action => 'new_stock_article', :layout => false
end
#render :update do |page|
# if article.save
# logger.debug "new StockArticle: #{article.id}"
# page.insert_html :bottom, 'stock_changes', :partial => 'stock_change',
# :locals => {:stock_change => article.stock_changes.build, :supplier => @supplier}
#
# page.replace_html 'new_stock_article', :partial => 'stock_article_form',
# :locals => {:stock_article => @supplier.stock_articles.build}
# else
# page.replace_html 'new_stock_article', :partial => 'stock_article_form',
# :locals => {:stock_article => article}
# end
#end
end
def add_stock_change