Revision 4c996a3d
Von Udo Spallek vor etwa 19 Jahren hinzugefügt
SL/AP.pm | ||
---|---|---|
448 | 448 |
my @a = (transdate, invnumber, name); |
449 | 449 |
push @a, "employee" if $self->{l_employee}; |
450 | 450 |
my $sortorder = join ', ', $form->sort_columns(@a); |
451 |
$sortorder = $form->{sort} unless $sortorder;
|
|
452 |
|
|
451 |
$sortorder = $form->{sort} if $form->{sort};
|
|
452 |
|
|
453 | 453 |
$query .= "WHERE $where |
454 | 454 |
ORDER by $sortorder"; |
455 | 455 |
|
SL/AR.pm | ||
---|---|---|
443 | 443 |
my @a = (transdate, invnumber, name); |
444 | 444 |
push @a, "employee" if $form->{l_employee}; |
445 | 445 |
my $sortorder = join ', ', $form->sort_columns(@a); |
446 |
$sortorder = $form->{sort} unless $sortorder;
|
|
446 |
$sortorder = $form->{sort} if $form->{sort};
|
|
447 | 447 |
|
448 | 448 |
$query .= "WHERE $where |
449 | 449 |
ORDER by $sortorder"; |
SL/BP.pm | ||
---|---|---|
185 | 185 |
|
186 | 186 |
my @a = (transdate, $invnumber, name); |
187 | 187 |
my $sortorder = join ', ', $form->sort_columns(@a); |
188 |
$sortorder = $form->{sort} unless $sortorder;
|
|
188 |
$sortorder = $form->{sort} if $form->{sort};
|
|
189 | 189 |
|
190 | 190 |
$query .= " ORDER by $sortorder"; |
191 | 191 |
|
SL/IC.pm | ||
---|---|---|
934 | 934 |
|
935 | 935 |
my $sortorder = $form->{sort}; |
936 | 936 |
$sortorder .= $form->{desc}; |
937 |
$sortorder = $form->{sort} unless $sortorder;
|
|
937 |
$sortorder = $form->{sort} if $form->{sort};
|
|
938 | 938 |
|
939 | 939 |
my $query = ""; |
940 | 940 |
|
SL/OE.pm | ||
---|---|---|
125 | 125 |
|
126 | 126 |
my $sortorder = join ', ', |
127 | 127 |
("o.id", $form->sort_columns(transdate, $ordnumber, name)); |
128 |
$sortorder = $form->{sort} unless $sortorder;
|
|
128 |
$sortorder = $form->{sort} if $form->{sort};
|
|
129 | 129 |
|
130 | 130 |
$query .= " AND lower($ordnumber) LIKE '$number'" if $form->{$ordnumber}; |
131 | 131 |
$query .= " AND o.transdate >= '$form->{transdatefrom}'" |
SL/RP.pm | ||
---|---|---|
2088 | 2088 |
my $ml = ($form->{db} eq 'ar') ? 1 : -1; |
2089 | 2089 |
|
2090 | 2090 |
my $sortorder = join ', ', $form->sort_columns(qw(transdate invnumber name)); |
2091 |
$sortorder = $form->{sort} unless $sortorder;
|
|
2091 |
$sortorder = $form->{sort} if $form->{sort};
|
|
2092 | 2092 |
|
2093 | 2093 |
$query = qq|SELECT a.id, '0' AS invoice, $transdate AS transdate, |
2094 | 2094 |
a.invnumber, n.name, a.netamount, |
Auch abrufbar als: Unified diff
Solved 179, Dank an Anneli Huth
Spalten Sortierung funktioniert nicht in Tabellen