Show the financial transaction type if there are more than one type #367

This commit is contained in:
Patrick Gansterer 2017-03-04 14:15:39 +01:00
parent e7657b987f
commit 924f346b4c
9 changed files with 98 additions and 15 deletions

View file

@ -30,6 +30,8 @@ class HomeController < ApplicationController
unless @ordergroup.nil?
@ordergroup = Ordergroup.include_transaction_class_sum.find(@ordergroup)
if params['sort']
sort = case params['sort']
when "date" then "created_on"