From: Bernd Bleßmann Date: Tue, 29 Dec 2020 20:19:17 +0000 (+0100) Subject: Zeiterfassung: Bericht: "gebucht" anzeigen und danach filtern können X-Git-Tag: kivitendo-mebil_0.1-0~9^2~316 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=88c4a90b0aa112997f3dc6043e8003c1251327c4;p=kivitendo-erp.git Zeiterfassung: Bericht: "gebucht" anzeigen und danach filtern können --- diff --git a/SL/Controller/TimeRecording.pm b/SL/Controller/TimeRecording.pm index 1e4ef4578..92e5253f2 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,6 +211,7 @@ 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') } }, ); $report->set_options( diff --git a/locale/de/all b/locale/de/all index 5332f7055..6f8153cb5 100755 --- a/locale/de/all +++ b/locale/de/all @@ -485,6 +485,7 @@ $self->{texts} = { 'Bis Konto: ' => 'bis Konto: ', 'Body' => 'Text', 'Body:' => 'Text:', + 'Booked' => 'gebucht', 'Booking group' => 'Buchungsgruppe', 'Booking group #1 needs a valid expense account' => 'Buchungsgruppe #1 braucht ein gültiges Aufwandskonto', 'Booking group #1 needs a valid income account' => 'Buchungsgruppe #1 braucht ein gültiges Erfolgskonto', diff --git a/locale/en/all b/locale/en/all index 5d55a8478..0078c5c58 100644 --- a/locale/en/all +++ b/locale/en/all @@ -485,6 +485,7 @@ $self->{texts} = { 'Bis Konto: ' => '', 'Body' => '', 'Body:' => '', + 'Booked' => '', 'Booking group' => '', 'Booking group #1 needs a valid expense account' => '', 'Booking group #1 needs a valid income account' => '', diff --git a/templates/webpages/time_recording/_filter.html b/templates/webpages/time_recording/_filter.html index b47b55d66..f63d370e9 100644 --- a/templates/webpages/time_recording/_filter.html +++ b/templates/webpages/time_recording/_filter.html @@ -41,6 +41,11 @@ [%- END -%] + + [% 'Booked' | $T8 %] + [% L.select_tag('filter.booked', [ [ '1', LxERP.t8('Yes') ], [ '0', LxERP.t8('No') ] ], default=filter.booked, with_empty=1, style="width: 200px") %] + + [% L.hidden_tag('sort_by', FORM.sort_by) %]