From 2dc09cf507b099b014a405001a6d67aa58cd124d Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 25 Jul 2008 16:26:08 +0000 Subject: [PATCH] =?utf8?q?Sortieren=20nach=20Vorgangsbezeichnung=20erm?= =?utf8?q?=C3=B6glichen.=20Fix=20f=C3=BCr=20Bug=20749.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/AP.pm | 4 +--- SL/AR.pm | 4 +--- bin/mozilla/ap.pl | 2 +- bin/mozilla/ar.pl | 2 +- bin/mozilla/do.pl | 2 +- bin/mozilla/oe.pl | 2 +- 6 files changed, 6 insertions(+), 10 deletions(-) diff --git a/SL/AP.pm b/SL/AP.pm index 24054c8cb..763fd3374 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -467,9 +467,7 @@ sub ap_transactions { 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))) { + if (grep({ $_ eq $form->{sort} } qw(transdate id invnumber ordnumber name netamount tax amount paid datepaid due duedate notes employee transaction_description))) { $sortorder = $form->{sort} . " $sortdir"; } diff --git a/SL/AR.pm b/SL/AR.pm index e37128c19..0a8987979 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -471,9 +471,7 @@ sub ar_transactions { 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 name - datepaid employee shippingpoint shipvia))) { + if (grep({ $_ eq $form->{sort} } qw(id transdate duedate invnumber ordnumber name datepaid employee shippingpoint shipvia transaction_description))) { $sortorder = $form->{sort} . " $sortdir"; } diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index b729cf0f6..895fa0305 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -1413,7 +1413,7 @@ sub ap_transactions { 'globalprojectnumber' => { 'text' => $locale->text('Project Number'), }, ); - foreach my $name (qw(id transdate duedate invnumber ordnumber name datepaid employee shippingpoint shipvia)) { + foreach my $name (qw(id transdate duedate invnumber ordnumber name datepaid employee shippingpoint shipvia transaction_description)) { my $sortdir = $form->{sort} eq $name ? 1 - $form->{sortdir} : $form->{sortdir}; $column_defs{$name}->{link} = $href . "&sort=$name&sortdir=$sortdir"; } diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index e0571633d..77c83f212 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -1500,7 +1500,7 @@ sub ar_transactions { 'marge_percent' => { 'text' => $locale->text('Ertrag prozentual'), }, ); - foreach my $name (qw(id transdate duedate invnumber ordnumber name datepaid employee shippingpoint shipvia)) { + foreach my $name (qw(id transdate duedate invnumber ordnumber name datepaid employee shippingpoint shipvia transaction_description)) { my $sortdir = $form->{sort} eq $name ? 1 - $form->{sortdir} : $form->{sortdir}; $column_defs{$name}->{link} = $href . "&sort=$name&sortdir=$sortdir"; } diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index b4ccfe3c4..081f87821 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -455,7 +455,7 @@ sub orders { 'delivered' => { 'text' => $locale->text('Delivered'), }, ); - foreach my $name (qw(id transdate donumber ordnumber name employee shipvia)) { + foreach my $name (qw(id transdate donumber ordnumber name employee shipvia transaction_description)) { my $sortdir = $form->{sort} eq $name ? 1 - $form->{sortdir} : $form->{sortdir}; $column_defs{$name}->{link} = $href . "&sort=$name&sortdir=$sortdir"; } diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 501dec288..41b290a3b 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -940,7 +940,7 @@ sub orders { 'marge_percent' => { 'text' => $locale->text('Ertrag prozentual'), } ); - foreach my $name (qw(id transdate reqdate quonumber ordnumber name employee salesman shipvia)) { + foreach my $name (qw(id transdate reqdate quonumber ordnumber name employee salesman shipvia transaction_description)) { my $sortdir = $form->{sort} eq $name ? 1 - $form->{sortdir} : $form->{sortdir}; $column_defs{$name}->{link} = $href . "&sort=$name&sortdir=$sortdir"; } -- 2.20.1