Revision 1050b837
Von Bernd Bleßmann vor mehr als 5 Jahren hinzugefügt
SL/CT.pm | ||
---|---|---|
"salesman" => "e.name",
|
||
"payment" => "pt.description",
|
||
"pricegroup" => "pg.pricegroup",
|
||
"ustid" => "ct.ustid",
|
||
"creditlimit" => "ct.creditlimit",
|
||
"commercial_court" => "ct.commercial_court",
|
||
);
|
||
|
||
$form->{sort} ||= "name";
|
||
... | ... | |
}
|
||
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}";
|
Auch abrufbar als: Unified diff
Kundenbericht: richtig nach Kreditlimit, UStID und Amtsgericht sortieren