From 88c4a90b0aa112997f3dc6043e8003c1251327c4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Tue, 29 Dec 2020 21:19:17 +0100 Subject: [PATCH] =?utf8?q?Zeiterfassung:=20Bericht:=20"gebucht"=20anzeigen?= =?utf8?q?=20und=20danach=20filtern=20k=C3=B6nnen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/TimeRecording.pm | 4 +++- locale/de/all | 1 + locale/en/all | 1 + templates/webpages/time_recording/_filter.html | 5 +++++ 4 files changed, 10 insertions(+), 1 deletion(-) 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) %] -- 2.20.1