Offer _undeleted_ StockArticles for new OrderArticle only

This commit is contained in:
Julius 2013-12-31 12:35:30 +01:00
parent 4f80fd0e8c
commit 3819fa012e

View file

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