From 5b981bb6a5c48dbec2297af61893c0add678669b Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Thu, 26 Jan 2017 12:47:47 +0100 Subject: [PATCH] Fibu Schnellsuche - Datum mit to_kivitendo und oneline_summary --- SL/Controller/TopQuickSearch/GLTransaction.pm | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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, } -- 2.20.1