Merge pull request #240 from foodcoop-rostock/fix-order-article-helper-undeleted
Offer _undeleted_ StockArticles for new OrderArticle only
This commit is contained in:
commit
0e8e93204a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue