]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Controller/GL.pm
Weitere Positionen verknüpft II
[mfinanz.git] / SL / Controller / GL.pm
index ce3799de2a619632fd079819e11a914c4f19317e..a407e80fe3d823c89bdf5fb5f85ec7cbab90e237 100644 (file)
@@ -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' });
 }