X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/f6ed86efee2a0a38b6e88e98fd9d4403fa64ff5e..991d16bbbc32c05e2e30e00711a42ba20207a8db:/SL/Controller/GL.pm diff --git a/SL/Controller/GL.pm b/SL/Controller/GL.pm index ce3799de2..a407e80fe 100644 --- a/SL/Controller/GL.pm +++ b/SL/Controller/GL.pm @@ -14,10 +14,10 @@ __PACKAGE__->run_before('check_auth'); sub action_quicksearch { my ($self, %params) = @_; - + my $limit = $::form->{limit} || 40; # max number of results per type (AR/AP/GL) my $term = $::form->{term} || ''; - + my $descriptionquery = { ilike => '%' . $term . '%' }; my $referencequery = { ilike => '%' . $term . '%' }; my $apinvnumberquery = { ilike => '%' . $term . '%' }; @@ -95,7 +95,7 @@ sub action_quicksearch { push(@{$data},@{$ardata}); push(@{$data},@{$apdata}); - @$data = reverse sort { $a->{'transdate_sort'} cmp $b->{'transdate_sort'} } @$data; + @$data = reverse sort { $a->{'transdate'} cmp $b->{'transdate'} } @$data; $self->render(\SL::JSON::to_json($data), { layout => 0, type => 'json' }); }