X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/2e6998c4284851d5f0b905d43952765954ddc5af..06fea22a5378d52ec870e76f83670f2191f1092b:/SL/Controller/TimeRecording.pm diff --git a/SL/Controller/TimeRecording.pm b/SL/Controller/TimeRecording.pm index 1e4ef4578..e852ba1a9 100644 --- a/SL/Controller/TimeRecording.pm +++ b/SL/Controller/TimeRecording.pm @@ -37,6 +37,7 @@ my %sort_columns = ( description => t8('Description'), staff_member => t8('Mitarbeiter'), duration => t8('Duration'), + booked => t8('Booked'), ); # @@ -194,7 +195,7 @@ sub prepare_report { my $report = SL::ReportGenerator->new(\%::myconfig, $::form); $self->{report} = $report; - my @columns = qw(start_time end_time customer part project description staff_member duration); + my @columns = qw(start_time end_time customer part project description staff_member duration booked); my %column_defs = ( start_time => { text => t8('Start'), sub => sub { $_[0]->start_time_as_timestamp }, @@ -210,13 +211,17 @@ sub prepare_report { staff_member => { text => t8('Mitarbeiter'), sub => sub { $_[0]->staff_member->safe_name } }, duration => { text => t8('Duration'), sub => sub { $_[0]->duration_as_duration_string }, align => 'right'}, + booked => { text => t8('Booked'), sub => sub { $_[0]->booked ? t8('Yes') : t8('No') } }, ); + my $title = t8('Time Recordings'); + $report->{title} = $title; # for browser titlebar (title-tag) + $report->set_options( controller_class => 'TimeRecording', std_column_visibility => 1, output_format => 'HTML', - title => t8('Time Recordings'), + title => $title, # for heading allow_pdf_export => 1, allow_csv_export => 1, );