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(
'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',
'Bis Konto: ' => '',
'Body' => '',
'Body:' => '',
+ 'Booked' => '',
'Booking group' => '',
'Booking group #1 needs a valid expense account' => '',
'Booking group #1 needs a valid income account' => '',
</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) %]