Changed default order of articles on balancing page.
This commit is contained in:
parent
e8fa912e8c
commit
4c57c57827
1 changed files with 3 additions and 3 deletions
|
@ -17,14 +17,14 @@ class Finance::BalancingController < ApplicationController
|
|||
@comments = @order.comments
|
||||
|
||||
if params['sort']
|
||||
sort = case params['sort']
|
||||
sort = case params['sort']
|
||||
when "name" then "articles.name"
|
||||
when "order_number" then "articles.order_number"
|
||||
when "name_reverse" then "articles.name DESC"
|
||||
when "order_number_reverse" then "articles.order_number DESC"
|
||||
end
|
||||
else
|
||||
sort = "articles.name"
|
||||
sort = "id"
|
||||
end
|
||||
|
||||
@articles = @order.order_articles.ordered.find(
|
||||
|
|
Loading…
Reference in a new issue