Offer _undeleted_ StockArticles for new OrderArticle only
This commit is contained in:
parent
01264bc0ac
commit
5349ee142e
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue