Revision 94e596e5
Von Moritz Bunkus vor mehr als 16 Jahren hinzugefügt
bin/mozilla/rp.pl | ||
---|---|---|
2346 | 2346 |
$option = $locale->text('Department') . " : $department"; |
2347 | 2347 |
} |
2348 | 2348 |
|
2349 |
report_generator_set_default_sort('transdate', 1); |
|
2350 |
|
|
2349 | 2351 |
RP->payments(\%myconfig, \%$form); |
2350 | 2352 |
|
2351 | 2353 |
my @hidden_variables = qw(account title department reference source memo fromdate todate |
... | ... | |
2365 | 2367 |
); |
2366 | 2368 |
my %column_alignment = ('paid' => 'right'); |
2367 | 2369 |
|
2368 |
map { $column_defs{$_}->{link} = $href . "&sort=$_" } grep { $_ ne 'paid' } @columns; |
|
2370 |
foreach my $name (grep { $_ ne 'paid' } @columns) { |
|
2371 |
my $sortdir = $form->{sort} eq $name ? 1 - $form->{sortdir} : $form->{sortdir}; |
|
2372 |
$column_defs{$name}->{link} = $href . "&sort=${name}&sortdir=$sortdir"; |
|
2373 |
} |
|
2369 | 2374 |
|
2370 | 2375 |
my @options; |
2371 | 2376 |
if ($form->{fromdate}) { |
... | ... | |
2392 | 2397 |
|
2393 | 2398 |
$report->set_export_options('list_payments', @hidden_variables); |
2394 | 2399 |
|
2395 |
$report->set_sort_indicator($form->{sort}, 1);
|
|
2400 |
$report->set_sort_indicator($form->{sort}, $form->{sortdir});
|
|
2396 | 2401 |
|
2397 | 2402 |
my $total_paid = 0; |
2398 | 2403 |
|
Auch abrufbar als: Unified diff
Berichte über Zahlungsein- und
ausgänge aufund absteigend sortierbar gemacht.