2012-06-21 17:19:00 +02:00
|
|
|
module Finance::OrderArticlesHelper
|
2012-07-27 18:03:46 +02:00
|
|
|
|
|
|
|
def new_order_articles_collection
|
|
|
|
if @order.stockit?
|
2012-11-10 16:44:05 +01:00
|
|
|
StockArticle.order('articles.name')
|
2012-07-27 18:03:46 +02:00
|
|
|
else
|
2013-07-08 02:31:54 +02:00
|
|
|
@order.supplier.articles.undeleted.order('articles.name')
|
2012-07-27 18:03:46 +02:00
|
|
|
end
|
|
|
|
end
|
2012-06-21 17:19:00 +02:00
|
|
|
end
|