From: Bernd Bleßmann Date: Mon, 23 Sep 2019 12:08:39 +0000 (+0200) Subject: Bericht VK-Rg/Debitorenbuchungen: nach Abteilungen sortieren können X-Git-Tag: release-3.5.6.1~484 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=abaf5db51963cb0ab19944ca4ebcc0e5de2f2fb9;p=kivitendo-erp.git Bericht VK-Rg/Debitorenbuchungen: nach Abteilungen sortieren können --- diff --git a/SL/AR.pm b/SL/AR.pm index 188bf9eee..8c15b7ebd 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -682,7 +682,7 @@ SQL my $sortdir = !defined $form->{sortdir} ? 'ASC' : $form->{sortdir} ? 'ASC' : 'DESC'; my $sortorder = join(', ', map { "$_ $sortdir" } @a); - if (grep({ $_ eq $form->{sort} } qw(id transdate duedate invnumber ordnumber cusordnumber name datepaid employee shippingpoint shipvia transaction_description))) { + if (grep({ $_ eq $form->{sort} } qw(id transdate duedate invnumber ordnumber cusordnumber name datepaid employee shippingpoint shipvia transaction_description department))) { $sortorder = $form->{sort} . " $sortdir"; } diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index 15e756e93..faabe5015 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -1064,7 +1064,7 @@ sub ar_transactions { %column_defs_cvars, ); - foreach my $name (qw(id transdate duedate invnumber ordnumber cusordnumber name datepaid employee shippingpoint shipvia transaction_description direct_debit)) { + foreach my $name (qw(id transdate duedate invnumber ordnumber cusordnumber name datepaid employee shippingpoint shipvia transaction_description direct_debit department)) { my $sortdir = $form->{sort} eq $name ? 1 - $form->{sortdir} : $form->{sortdir}; $column_defs{$name}->{link} = $href . "&sort=$name&sortdir=$sortdir"; }