foodsoft/app/helpers/finance/order_articles_helper.rb

11 lines
199 B
Ruby
Raw Normal View History

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