Offer _undeleted_ StockArticles for new OrderArticle only

This commit is contained in:
Julius 2013-12-31 12:35:30 +01:00 committed by wvengen
parent 01264bc0ac
commit 5349ee142e

View file

@ -2,9 +2,9 @@ module OrderArticlesHelper
def new_order_articles_collection
if @order.stockit?
StockArticle.order('articles.name')
StockArticle.undeleted.reorder('articles.name')
else
@order.supplier.articles.undeleted.order('articles.name')
@order.supplier.articles.undeleted.reorder('articles.name')
end
end
end