Merge pull request #240 from foodcoop-rostock/fix-order-article-helper-undeleted

Offer _undeleted_ StockArticles for new OrderArticle only
This commit is contained in:
wvengen 2014-01-08 04:42:55 -08:00
commit 0e8e93204a

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