Improve stock_article_selections

This commit is contained in:
Julius 2013-01-28 20:46:35 +01:00
parent 524819b86f
commit 396a47b6af
10 changed files with 104 additions and 30 deletions

View file

@ -1,8 +1,7 @@
class StockitController < ApplicationController
def index
@stock_articles = StockArticle.includes(:supplier, :article_category).
order('suppliers.name, article_categories.name, articles.name')
@stock_articles = StockArticle.elements_for_index
@stock_article_selection = StockArticleSelection.new
end