X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/bc40bcabc425b99f3b79a5544684a6fe8674adfe..0bfbcce6e77e0f9d83e4f54f3fe9da7edcc866f3:/SL/Controller/TopQuickSearch/GLTransaction.pm diff --git a/SL/Controller/TopQuickSearch/GLTransaction.pm b/SL/Controller/TopQuickSearch/GLTransaction.pm index 8eead24de..dab0a6284 100644 --- a/SL/Controller/TopQuickSearch/GLTransaction.pm +++ b/SL/Controller/TopQuickSearch/GLTransaction.pm @@ -11,7 +11,7 @@ use SL::Locale::String qw(t8); use SL::DBUtils qw(like); use List::Util qw(sum); -sub auth { 'general_ledger' } +sub auth { 'general_ledger|gl_transactions|ap_transactions|ar_transactions' } sub name { 'gl_transaction' } @@ -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, }