From: Bernd Bleßmann Date: Thu, 12 Dec 2019 11:57:31 +0000 (+0100) Subject: Kundenbericht: richtig nach Kreditlimit, UStID und Amtsgericht sortieren X-Git-Tag: release-3.5.6.1~404 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1050b837d2a1393a20ad50b3574b958db6db10f1;p=kivitendo-erp.git Kundenbericht: richtig nach Kreditlimit, UStID und Amtsgericht sortieren --- diff --git a/SL/CT.pm b/SL/CT.pm index 6a52ee716..0c20a6fa7 100644 --- a/SL/CT.pm +++ b/SL/CT.pm @@ -84,6 +84,9 @@ sub search { "salesman" => "e.name", "payment" => "pt.description", "pricegroup" => "pg.pricegroup", + "ustid" => "ct.ustid", + "creditlimit" => "ct.creditlimit", + "commercial_court" => "ct.commercial_court", ); $form->{sort} ||= "name"; @@ -98,7 +101,7 @@ sub search { } my $sortdir = !defined $form->{sortdir} ? 'ASC' : $form->{sortdir} ? 'ASC' : 'DESC'; - if ($sortorder !~ /(business|id|discount|itime)/ && !$join_records) { + if ($sortorder !~ /(business|creditlimit|id|discount|itime)/ && !$join_records) { $sortorder = "lower($sortorder) ${sortdir}"; } else { $sortorder .= " ${sortdir}";