]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Controller/TopQuickSearch/GLTransaction.pm
FiBu Schnellsuche repariert
[mfinanz.git] / SL / Controller / TopQuickSearch / GLTransaction.pm
index baa6da0ce02d1d52c014bdfe4145c0ff665c3bdb..f1017397587cbe7f5c2e467b5d719a5b980418b8 100644 (file)
@@ -54,8 +54,9 @@ sub query_autocomplete {
     map(
       {
         {
-           transdate => DateTime->from_object(object => $_->transdate)->ymd(),
-           label     => $_->abbreviation. ": " . $_->description . " " . $_->reference . " " . $::form->format_amount(\%::myconfig, $_->{'amount'},2). " (" . $_->transdate->to_lxoffice . ")" ,
+           transdate => $_->transdate->to_kivitendo,
+           label     => $_->oneline_summary,
+           value     => '',
            id        => 'gl.pl?action=edit&id=' . $_->id,
         }
       }
@@ -67,8 +68,9 @@ 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 . ")" ,
+           transdate => $_->transdate->to_kivitendo,
+           label     => $_->oneline_summary,
+           value     => "",
            id        => ($_->invoice ? "is" : "ar" ) . '.pl?action=edit&id=' . $_->id,
         }
       }
@@ -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,
         }