Skip to content

Commit

Permalink
FIX: EK/Kredit.-Bericht Sortierung nach Erstellungsdatum
Browse files Browse the repository at this point in the history
  • Loading branch information
z4m1n0 committed Feb 29, 2024
1 parent ba8675f commit 64ed077
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SL/AP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ SQL
my $sortdir = !defined $form->{sortdir} ? 'ASC' : $form->{sortdir} ? 'ASC' : 'DESC';
my $sortorder = join(', ', map { "$_ $sortdir" } @a);

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))) {
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))) {
$sortorder = $form->{sort} . " $sortdir";
}

Expand Down
2 changes: 1 addition & 1 deletion bin/mozilla/ap.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ sub ap_transactions {
'items' => { 'text' => $locale->text('Positions'), },
);

foreach my $name (qw(id transdate duedate invnumber ordnumber name datepaid employee shippingpoint shipvia transaction_description direct_debit department taxzone insertdate)) {
foreach my $name (qw(id transdate duedate invnumber ordnumber name datepaid employee shipvia transaction_description direct_debit department taxzone insertdate)) {
my $sortdir = $form->{sort} eq $name ? 1 - $form->{sortdir} : $form->{sortdir};
$column_defs{$name}->{link} = $href . "&sort=$name&sortdir=$sortdir";
}
Expand Down

0 comments on commit 64ed077

Please sign in to comment.