Revision c654c46b
Von Moritz Bunkus vor mehr als 16 Jahren hinzugefügt
SL/AP.pm | ||
---|---|---|
464 | 464 |
|
465 | 465 |
my @a = (transdate, invnumber, name); |
466 | 466 |
push @a, "employee" if $self->{l_employee}; |
467 |
my $sortdir = $form->{sortdir} ? 'ASC' : 'DESC'; |
|
467 |
my $sortdir = !defined $form->{sortdir} ? 'ASC' : $form->{sortdir} ? 'ASC' : 'DESC';
|
|
468 | 468 |
my $sortorder = join(', ', map { "$_ $sortdir" } @a); |
469 | 469 |
|
470 | 470 |
if (grep({ $_ eq $form->{sort} } |
SL/AR.pm | ||
---|---|---|
468 | 468 |
|
469 | 469 |
my @a = (transdate, invnumber, name); |
470 | 470 |
push @a, "employee" if $form->{l_employee}; |
471 |
my $sortdir = $form->{sortdir} ? 'ASC' : 'DESC'; |
|
471 |
my $sortdir = !defined $form->{sortdir} ? 'ASC' : $form->{sortdir} ? 'ASC' : 'DESC';
|
|
472 | 472 |
my $sortorder = join(', ', map { "$_ $sortdir" } @a); |
473 | 473 |
|
474 | 474 |
if (grep({ $_ eq $form->{sort} } |
SL/DO.pm | ||
---|---|---|
142 | 142 |
"transaction_description" => "dord.transaction_description" |
143 | 143 |
); |
144 | 144 |
|
145 |
my $sortdir = $form->{sortdir} ? 'ASC' : 'DESC'; |
|
145 |
my $sortdir = !defined $form->{sortdir} ? 'ASC' : $form->{sortdir} ? 'ASC' : 'DESC';
|
|
146 | 146 |
my $sortorder = "dord.id"; |
147 | 147 |
if ($form->{sort} && grep($form->{sort}, keys(%allowed_sort_columns))) { |
148 | 148 |
$sortorder = $allowed_sort_columns{$form->{sort}}; |
SL/OE.pm | ||
---|---|---|
148 | 148 |
push(@values, '%' . $form->{transaction_description} . '%'); |
149 | 149 |
} |
150 | 150 |
|
151 |
my $sortdir = $form->{sortdir} ? 'ASC' : 'DESC'; |
|
151 |
my $sortdir = !defined $form->{sortdir} ? 'ASC' : $form->{sortdir} ? 'ASC' : 'DESC';
|
|
152 | 152 |
my $sortorder = join(', ', map { "${_} ${sortdir} " } ("o.id", $form->sort_columns("transdate", $ordnumber, "name"))); |
153 | 153 |
my %allowed_sort_columns = ( |
154 | 154 |
"transdate" => "o.transdate", |
Auch abrufbar als: Unified diff
Die Sortierung soll standardmäßig aufsteigend erfolgen.