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?
|
2013-12-31 12:35:30 +01:00
|
|
|
StockArticle.undeleted.reorder('articles.name')
|
2012-07-27 18:03:46 +02:00
|
|
|
else
|
2013-12-31 12:35:30 +01:00
|
|
|
@order.supplier.articles.undeleted.reorder('articles.name')
|
2012-07-27 18:03:46 +02:00
|
|
|
end
|
|
|
|
end
|
2012-06-21 17:19:00 +02:00
|
|
|
end
|