foodsoft/app/helpers/finance/order_articles_helper.rb

10 lines
199 B
Ruby

module Finance::OrderArticlesHelper
def new_order_articles_collection
if @order.stockit?
StockArticle.order(:name)
else
@order.supplier.articles.order(:name)
end
end
end