Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 88c4a90b

Von Bernd Bleßmann vor fast 4 Jahren hinzugefügt

  • ID 88c4a90b0aa112997f3dc6043e8003c1251327c4
  • Vorgänger 64fab360
  • Nachfolger 0b780ffb

Zeiterfassung: Bericht: "gebucht" anzeigen und danach filtern können

Unterschiede anzeigen:

SL/Controller/TimeRecording.pm
description => t8('Description'),
staff_member => t8('Mitarbeiter'),
duration => t8('Duration'),
booked => t8('Booked'),
);
#
......
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 },
......
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(
locale/de/all
'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',
locale/en/all
'Bis Konto: ' => '',
'Body' => '',
'Body:' => '',
'Booked' => '',
'Booking group' => '',
'Booking group #1 needs a valid expense account' => '',
'Booking group #1 needs a valid income account' => '',
templates/webpages/time_recording/_filter.html
</tr>
[%- END -%]
<tr>
<th align="right">[% 'Booked' | $T8 %]</th>
<td>[% L.select_tag('filter.booked', [ [ '1', LxERP.t8('Yes') ], [ '0', LxERP.t8('No') ] ], default=filter.booked, with_empty=1, style="width: 200px") %]</td>
</tr>
</table>
[% L.hidden_tag('sort_by', FORM.sort_by) %]

Auch abrufbar als: Unified diff