Improve stock_article_selections
This commit is contained in:
parent
524819b86f
commit
396a47b6af
10 changed files with 104 additions and 30 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue