X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FTopQuickSearch%2FGLTransaction.pm;fp=SL%2FController%2FTopQuickSearch%2FGLTransaction.pm;h=dab0a6284c287bcad5995b5245cdf0d85b4b5c13;hb=5b981bb6a5c48dbec2297af61893c0add678669b;hp=baa6da0ce02d1d52c014bdfe4145c0ff665c3bdb;hpb=26e664605282fcead6fa56eb533cdd059361501f;p=kivitendo-erp.git diff --git a/SL/Controller/TopQuickSearch/GLTransaction.pm b/SL/Controller/TopQuickSearch/GLTransaction.pm index baa6da0ce..dab0a6284 100644 --- a/SL/Controller/TopQuickSearch/GLTransaction.pm +++ b/SL/Controller/TopQuickSearch/GLTransaction.pm @@ -54,9 +54,10 @@ sub query_autocomplete { map( { { - transdate => DateTime->from_object(object => $_->transdate)->ymd(), - label => $_->abbreviation. ": " . $_->description . " " . $_->reference . " " . $::form->format_amount(\%::myconfig, $_->{'amount'},2). " (" . $_->transdate->to_lxoffice . ")" , - id => 'gl.pl?action=edit&id=' . $_->id, + transdate => $_->transdate->to_kivitendo, + label => $_->oneline_summary, + value => '', + url => 'gl.pl?action=edit&id=' . $_->id, } } @{$gls} @@ -67,9 +68,10 @@ sub query_autocomplete { map( { { - transdate => DateTime->from_object(object => $_->transdate)->ymd(), - label => $_->abbreviation . ": " . $_->invnumber . " " . $_->customer->name . " " . $::form->format_amount(\%::myconfig, $_->amount,2) . " (" . $_->transdate->to_lxoffice . ")" , - id => ($_->invoice ? "is" : "ar" ) . '.pl?action=edit&id=' . $_->id, + transdate => $_->transdate->to_kivitendo, + label => $_->oneline_summary, + value => "", + url => ($_->invoice ? "is" : "ar" ) . '.pl?action=edit&id=' . $_->id, } } @{$ars} @@ -80,8 +82,8 @@ sub query_autocomplete { map( { { - transdate => DateTime->from_object(object => $_->transdate)->ymd(), - label => $_->abbreviation . ": " . $_->invnumber . " " . $_->vendor->name . " " . $::form->format_amount(\%::myconfig, $_->amount,2) . " (" . $_->transdate->to_lxoffice . ")" , + transdate => $_->transdate->to_kivitendo, + label => $_->oneline_summary, value => "", id => ($_->invoice ? "ir" : "ap" ) . '.pl?action=edit&id=' . $_->id, }