From 3819fa012e7a8ae77a45fd397d738c3ac98202f8 Mon Sep 17 00:00:00 2001 From: Julius Date: Tue, 31 Dec 2013 12:35:30 +0100 Subject: [PATCH] Offer _undeleted_ StockArticles for new OrderArticle only --- app/helpers/finance/order_articles_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/finance/order_articles_helper.rb b/app/helpers/finance/order_articles_helper.rb index 0ebbc835..a070907f 100644 --- a/app/helpers/finance/order_articles_helper.rb +++ b/app/helpers/finance/order_articles_helper.rb @@ -2,9 +2,9 @@ module Finance::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