Revision 2dc09cf5
Von Moritz Bunkus vor mehr als 16 Jahren hinzugefügt
SL/AP.pm | ||
---|---|---|
467 | 467 |
my $sortdir = !defined $form->{sortdir} ? 'ASC' : $form->{sortdir} ? 'ASC' : 'DESC'; |
468 | 468 |
my $sortorder = join(', ', map { "$_ $sortdir" } @a); |
469 | 469 |
|
470 |
if (grep({ $_ eq $form->{sort} } |
|
471 |
qw(transdate id invnumber ordnumber name netamount tax amount |
|
472 |
paid datepaid due duedate notes employee))) { |
|
470 |
if (grep({ $_ eq $form->{sort} } qw(transdate id invnumber ordnumber name netamount tax amount paid datepaid due duedate notes employee transaction_description))) { |
|
473 | 471 |
$sortorder = $form->{sort} . " $sortdir"; |
474 | 472 |
} |
475 | 473 |
|
SL/AR.pm | ||
---|---|---|
471 | 471 |
my $sortdir = !defined $form->{sortdir} ? 'ASC' : $form->{sortdir} ? 'ASC' : 'DESC'; |
472 | 472 |
my $sortorder = join(', ', map { "$_ $sortdir" } @a); |
473 | 473 |
|
474 |
if (grep({ $_ eq $form->{sort} } |
|
475 |
qw(id transdate duedate invnumber ordnumber name |
|
476 |
datepaid employee shippingpoint shipvia))) { |
|
474 |
if (grep({ $_ eq $form->{sort} } qw(id transdate duedate invnumber ordnumber name datepaid employee shippingpoint shipvia transaction_description))) { |
|
477 | 475 |
$sortorder = $form->{sort} . " $sortdir"; |
478 | 476 |
} |
479 | 477 |
|
bin/mozilla/ap.pl | ||
---|---|---|
1413 | 1413 |
'globalprojectnumber' => { 'text' => $locale->text('Project Number'), }, |
1414 | 1414 |
); |
1415 | 1415 |
|
1416 |
foreach my $name (qw(id transdate duedate invnumber ordnumber name datepaid employee shippingpoint shipvia)) { |
|
1416 |
foreach my $name (qw(id transdate duedate invnumber ordnumber name datepaid employee shippingpoint shipvia transaction_description)) {
|
|
1417 | 1417 |
my $sortdir = $form->{sort} eq $name ? 1 - $form->{sortdir} : $form->{sortdir}; |
1418 | 1418 |
$column_defs{$name}->{link} = $href . "&sort=$name&sortdir=$sortdir"; |
1419 | 1419 |
} |
bin/mozilla/ar.pl | ||
---|---|---|
1500 | 1500 |
'marge_percent' => { 'text' => $locale->text('Ertrag prozentual'), }, |
1501 | 1501 |
); |
1502 | 1502 |
|
1503 |
foreach my $name (qw(id transdate duedate invnumber ordnumber name datepaid employee shippingpoint shipvia)) { |
|
1503 |
foreach my $name (qw(id transdate duedate invnumber ordnumber name datepaid employee shippingpoint shipvia transaction_description)) {
|
|
1504 | 1504 |
my $sortdir = $form->{sort} eq $name ? 1 - $form->{sortdir} : $form->{sortdir}; |
1505 | 1505 |
$column_defs{$name}->{link} = $href . "&sort=$name&sortdir=$sortdir"; |
1506 | 1506 |
} |
bin/mozilla/do.pl | ||
---|---|---|
455 | 455 |
'delivered' => { 'text' => $locale->text('Delivered'), }, |
456 | 456 |
); |
457 | 457 |
|
458 |
foreach my $name (qw(id transdate donumber ordnumber name employee shipvia)) { |
|
458 |
foreach my $name (qw(id transdate donumber ordnumber name employee shipvia transaction_description)) {
|
|
459 | 459 |
my $sortdir = $form->{sort} eq $name ? 1 - $form->{sortdir} : $form->{sortdir}; |
460 | 460 |
$column_defs{$name}->{link} = $href . "&sort=$name&sortdir=$sortdir"; |
461 | 461 |
} |
bin/mozilla/oe.pl | ||
---|---|---|
940 | 940 |
'marge_percent' => { 'text' => $locale->text('Ertrag prozentual'), } |
941 | 941 |
); |
942 | 942 |
|
943 |
foreach my $name (qw(id transdate reqdate quonumber ordnumber name employee salesman shipvia)) { |
|
943 |
foreach my $name (qw(id transdate reqdate quonumber ordnumber name employee salesman shipvia transaction_description)) {
|
|
944 | 944 |
my $sortdir = $form->{sort} eq $name ? 1 - $form->{sortdir} : $form->{sortdir}; |
945 | 945 |
$column_defs{$name}->{link} = $href . "&sort=$name&sortdir=$sortdir"; |
946 | 946 |
} |
Auch abrufbar als: Unified diff
Sortieren nach Vorgangsbezeichnung ermöglichen. Fix für Bug 749.