start_time => t8('Start'),
end_time => t8('End'),
customer => t8('Customer'),
start_time => t8('Start'),
end_time => t8('End'),
customer => t8('Customer'),
project => t8('Project'),
description => t8('Description'),
staff_member => t8('Mitarbeiter'),
project => t8('Project'),
description => t8('Description'),
staff_member => t8('Mitarbeiter'),
sorted => \%sort_columns,
disable_plugin => 'paginated',
query => \@where,
sorted => \%sort_columns,
disable_plugin => 'paginated',
query => \@where,
- with_objects => [ 'customer', 'type', 'project', 'staff_member', 'employee' ],
+ with_objects => [ 'customer', 'project', 'staff_member', 'employee' ],
my $report = SL::ReportGenerator->new(\%::myconfig, $::form);
$self->{report} = $report;
my $report = SL::ReportGenerator->new(\%::myconfig, $::form);
$self->{report} = $report;
end_time => { text => t8('End'), sub => sub { $_[0]->end_time_as_timestamp },
obj_link => sub { $self->url_for(action => 'edit', 'id' => $_[0]->id, callback => $self->models->get_callback) } },
customer => { text => t8('Customer'), sub => sub { $_[0]->customer->displayable_name } },
end_time => { text => t8('End'), sub => sub { $_[0]->end_time_as_timestamp },
obj_link => sub { $self->url_for(action => 'edit', 'id' => $_[0]->id, callback => $self->models->get_callback) } },
customer => { text => t8('Customer'), sub => sub { $_[0]->customer->displayable_name } },
project => { text => t8('Project'), sub => sub { $_[0]->project && $_[0]->project->displayable_name } },
description => { text => t8('Description'), sub => sub { $_[0]->description_as_stripped_html },
raw_data => sub { $_[0]->description_as_restricted_html }, # raw_data only used for html(?)
project => { text => t8('Project'), sub => sub { $_[0]->project && $_[0]->project->displayable_name } },
description => { text => t8('Description'), sub => sub { $_[0]->description_as_stripped_html },
raw_data => sub { $_[0]->description_as_restricted_html }, # raw_data only used for html(?)
$report->set_options_from_form;
$self->models->disable_plugin('paginated') if $report->{options}{output_format} =~ /^(pdf|csv)$/i;
$report->set_options_from_form;
$self->models->disable_plugin('paginated') if $report->{options}{output_format} =~ /^(pdf|csv)$/i;