Cleanup StockArticle creation during delivery
This commit is contained in:
parent
e28f3eda65
commit
49cfa9aded
4 changed files with 10 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue