use SL::OE;
use SL::Locale::String qw(t8);
use SL::ReportGenerator;
+use SL::Presenter::Part;
use SL::DB::Part;
# $locale->text('return_material')
# $locale->text('release_material')
# $locale->text('assembled')
+# $locale->text('stocktaking')
# --------------------------------------------------------------------
# Transfer
my $idx = 0;
foreach my $entry (@contents) {
- $entry->{type_and_classific} = $::request->presenter->type_abbreviation($entry->{part_type}).
- $::request->presenter->classification_abbreviation($entry->{classification_id});
+ $entry->{type_and_classific} = SL::Presenter::Part::type_abbreviation($entry->{part_type}) .
+ SL::Presenter::Part::classification_abbreviation($entry->{classification_id});
$entry->{qty} = $form->format_amount(\%myconfig, $entry->{qty});
$entry->{trans_type} = $locale->text($entry->{trans_type});
$report->set_options('raw_bottom_info_text' => $form->parse_html_template('common/paginate',
{ 'pages' => $pages , 'base_url' => $href.'&sort='.$form->{sort}.'&order='.$form->{order}}) );
}
- $report->generate_with_headers(action_bar => 1);
+ $report->generate_with_headers();
$main::lxdebug->leave_sub();
}
foreach my $entry (@contents) {
- $entry->{type_and_classific} = $::request->presenter->type_abbreviation($entry->{part_type}).
- $::request->presenter->classification_abbreviation($entry->{classification_id});
+ $entry->{type_and_classific} = SL::Presenter::Part::type_abbreviation($entry->{part_type}).
+ SL::Presenter::Part::classification_abbreviation($entry->{classification_id});
map { $subtotals{$_} += $entry->{$_} } @subtotals_columns;
$total_stock_value += $entry->{stock_value} * 1;
$entry->{qty} = $form->format_amount(\%myconfig, $entry->{qty});
{'pages' => $pages , 'base_url' => $href}) );
}
- $report->generate_with_headers(action_bar => 1);
+ $report->generate_with_headers();
$main::lxdebug->leave_sub();
}