foodsoft/app/helpers/order_articles_helper.rb

11 lines
234 B
Ruby
Raw Normal View History

module OrderArticlesHelper
def new_order_articles_collection
if @order.stockit?
StockArticle.undeleted.reorder('articles.name')
else
@order.supplier.articles.undeleted.reorder('articles.name')
end
end
2012-06-21 17:19:00 +02:00
end