Revision 64ed077b
Von Tamino Steinert vor 8 Monaten hinzugefügt
SL/AP.pm | ||
---|---|---|
773 | 773 |
my $sortdir = !defined $form->{sortdir} ? 'ASC' : $form->{sortdir} ? 'ASC' : 'DESC'; |
774 | 774 |
my $sortorder = join(', ', map { "$_ $sortdir" } @a); |
775 | 775 |
|
776 |
if (grep({ $_ eq $form->{sort} } qw(transdate id invnumber ordnumber name netamount tax amount paid datepaid due duedate notes employee transaction_description direct_debit department taxzone))) { |
|
776 |
if (grep({ $_ eq $form->{sort} } qw(transdate id invnumber ordnumber name netamount tax amount paid datepaid due duedate notes employee transaction_description direct_debit department taxzone insertdate))) {
|
|
777 | 777 |
$sortorder = $form->{sort} . " $sortdir"; |
778 | 778 |
} |
779 | 779 |
|
bin/mozilla/ap.pl | ||
---|---|---|
1231 | 1231 |
'items' => { 'text' => $locale->text('Positions'), }, |
1232 | 1232 |
); |
1233 | 1233 |
|
1234 |
foreach my $name (qw(id transdate duedate invnumber ordnumber name datepaid employee shippingpoint shipvia transaction_description direct_debit department taxzone insertdate)) {
|
|
1234 |
foreach my $name (qw(id transdate duedate invnumber ordnumber name datepaid employee shipvia transaction_description direct_debit department taxzone insertdate)) { |
|
1235 | 1235 |
my $sortdir = $form->{sort} eq $name ? 1 - $form->{sortdir} : $form->{sortdir}; |
1236 | 1236 |
$column_defs{$name}->{link} = $href . "&sort=$name&sortdir=$sortdir"; |
1237 | 1237 |
} |
Auch abrufbar als: Unified diff
FIX: EK/Kredit.-Bericht Sortierung nach Erstellungsdatum