Revision 262108d0
Von Moritz Bunkus vor mehr als 16 Jahren hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
1376 | 1376 |
|
1377 | 1377 |
($form->{vendor}, $form->{vendor_id}) = split(/--/, $form->{vendor}); |
1378 | 1378 |
|
1379 |
$form->{sort} ||= 'transdate';
|
|
1379 |
report_generator_set_default_sort('transdate', 1);
|
|
1380 | 1380 |
|
1381 | 1381 |
AP->ap_transactions(\%myconfig, \%$form); |
1382 | 1382 |
|
... | ... | |
1413 | 1413 |
'globalprojectnumber' => { 'text' => $locale->text('Project Number'), }, |
1414 | 1414 |
); |
1415 | 1415 |
|
1416 |
foreach my $name (qw(id transdate duedate invnumber ordnumber name datepaid |
|
1417 |
employee shippingpoint shipvia)) {
|
|
1418 |
$column_defs{$name}->{link} = $href . "&sort=$name"; |
|
1416 |
foreach my $name (qw(id transdate duedate invnumber ordnumber name datepaid employee shippingpoint shipvia)) {
|
|
1417 |
my $sortdir = $form->{sort} eq $name ? 1 - $form->{sortdir} : $form->{sortdir};
|
|
1418 |
$column_defs{$name}->{link} = $href . "&sort=$name&sortdir=$sortdir";
|
|
1419 | 1419 |
} |
1420 | 1420 |
|
1421 | 1421 |
my %column_alignment = map { $_ => 'right' } qw(netamount tax amount paid due); |
... | ... | |
1428 | 1428 |
|
1429 | 1429 |
$report->set_export_options('ap_transactions', @hidden_variables); |
1430 | 1430 |
|
1431 |
$report->set_sort_indicator($form->{sort}, 1);
|
|
1431 |
$report->set_sort_indicator($form->{sort}, $form->{sortdir});
|
|
1432 | 1432 |
|
1433 | 1433 |
my @options; |
1434 | 1434 |
if ($form->{vendor}) { |
Auch abrufbar als: Unified diff
Sortierung in Berichten über Eingangsrechnungen/Kreditorenbuchungen auch auf- und absteigbar sortierbar gemacht.