Revision 3f4f01dc
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
bin/mozilla/gl.pl | ||
---|---|---|
304 | 304 |
); |
305 | 305 |
|
306 | 306 |
# add employee here, so that variable is still known and passed in url when choosing a different sort order in resulting table |
307 |
my @hidden_variables = qw(accno source reference department description notes project_id datefrom dateto employee datesort category l_subtotal); |
|
307 |
my @hidden_variables = qw(accno source reference department description notes project_id datefrom dateto employee_id datesort category l_subtotal);
|
|
308 | 308 |
push @hidden_variables, map { "l_${_}" } @columns; |
309 | 309 |
foreach ( @hidden_variables ) { |
310 | 310 |
print URL "$_\n"; |
311 | 311 |
}; |
312 | 312 |
|
313 |
my $employee = $form->{employee_id} ? SL::DB::Employee->new(id => $form->{employee_id})->load->name : ''; |
|
314 |
|
|
313 | 315 |
my (@options, @date_options); |
314 | 316 |
push @options, $locale->text('Account') . " : $form->{accno} $form->{account_description}" if ($form->{accno}); |
315 | 317 |
push @options, $locale->text('Source') . " : $form->{source}" if ($form->{source}); |
316 | 318 |
push @options, $locale->text('Reference') . " : $form->{reference}" if ($form->{reference}); |
317 | 319 |
push @options, $locale->text('Description') . " : $form->{description}" if ($form->{description}); |
318 | 320 |
push @options, $locale->text('Notes') . " : $form->{notes}" if ($form->{notes}); |
319 |
push @options, $locale->text('Employee') . " : $form->{employee_name}" if ($form->{employee_name});
|
|
321 |
push @options, $locale->text('Employee') . " : $employee" if $employee;
|
|
320 | 322 |
my $datesorttext = $form->{datesort} eq 'transdate' ? $locale->text('Invoice Date') : $locale->text('Booking Date'); |
321 | 323 |
push @date_options, "$datesorttext" if ($form->{datesort} and ($form->{datefrom} or $form->{dateto})); |
322 | 324 |
push @date_options, $locale->text('From'), $locale->date(\%myconfig, $form->{datefrom}, 1) if ($form->{datefrom}); |
Auch abrufbar als: Unified diff
Buchungsjournal: Filter "Bearbeiter" gefixt
Behebt #2248.