Revision 679db39f
Von Moritz Bunkus vor mehr als 16 Jahren hinzugefügt
bin/mozilla/ar.pl | ||
---|---|---|
1457 | 1457 |
$form->{customer} = $form->unescape($form->{customer}); |
1458 | 1458 |
($form->{customer}, $form->{customer_id}) = split(/--/, $form->{customer}); |
1459 | 1459 |
|
1460 |
$form->{sort} ||= 'transdate';
|
|
1460 |
report_generator_set_default_sort('transdate', 1);
|
|
1461 | 1461 |
|
1462 | 1462 |
AR->ar_transactions(\%myconfig, \%$form); |
1463 | 1463 |
|
... | ... | |
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 |
|
1504 |
employee shippingpoint shipvia)) {
|
|
1505 |
$column_defs{$name}->{link} = $href . "&sort=$name"; |
|
1503 |
foreach my $name (qw(id transdate duedate invnumber ordnumber name datepaid employee shippingpoint shipvia)) {
|
|
1504 |
my $sortdir = $form->{sort} eq $name ? 1 - $form->{sortdir} : $form->{sortdir};
|
|
1505 |
$column_defs{$name}->{link} = $href . "&sort=$name&sortdir=$sortdir";
|
|
1506 | 1506 |
} |
1507 | 1507 |
|
1508 | 1508 |
my %column_alignment = map { $_ => 'right' } qw(netamount tax amount paid due); |
... | ... | |
1515 | 1515 |
|
1516 | 1516 |
$report->set_export_options('ar_transactions', @hidden_variables); |
1517 | 1517 |
|
1518 |
$report->set_sort_indicator($form->{sort}, 1);
|
|
1518 |
$report->set_sort_indicator($form->{sort}, $form->{sortdir});
|
|
1519 | 1519 |
|
1520 | 1520 |
my @options; |
1521 | 1521 |
if ($form->{customer}) { |
Auch abrufbar als: Unified diff
Sortierung in Berichten über Ausgangsrechnungen/Debitorenbuchungen auch auf- und absteigbar sortierbar gemacht.