From: G. Richardson Date: Thu, 26 Jan 2017 11:47:47 +0000 (+0100) Subject: Fibu Schnellsuche - Datum mit to_kivitendo und oneline_summary X-Git-Tag: release-3.5.4~1616 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5b981bb6a5c48dbec2297af61893c0add678669b;p=kivitendo-erp.git Fibu Schnellsuche - Datum mit to_kivitendo und oneline_summary --- 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, }