X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/be8c4415c90cb11cbf45132b63482f420b41070b..3d99b4f59f7595e8f0faa0a729c70d333edfed04:/bin/mozilla/wh.pl diff --git a/bin/mozilla/wh.pl b/bin/mozilla/wh.pl index e8afc5dae..8c5e5f2d2 100644 --- a/bin/mozilla/wh.pl +++ b/bin/mozilla/wh.pl @@ -835,7 +835,7 @@ sub generate_report { $form->{report_generator_output_format} = 'HTML' if !$form->{report_generator_output_format}; # manual paginating - my $allrows = !!($form->{report_generator_output_format} ne 'HTML') ; + my $allrows = $form->{report_generator_output_format} eq 'HTML' ? $form->{allrows} : 1; my $page = $::form->{page} || 1; my $pages = {}; $pages->{per_page} = $::form->{per_page} || 20; @@ -864,7 +864,7 @@ sub generate_report { my @hidden_variables = map { "l_${_}" } @columns; push @hidden_variables, qw(warehouse_id bin_id partnumber partstypes_id description chargenumber bestbefore qty_op qty qty_unit partunit l_warehousedescription l_bindescription); push @hidden_variables, qw(include_empty_bins subtotal include_invalid_warehouses date); - push @hidden_variables, qw(classification_id stock_value_basis); + push @hidden_variables, qw(classification_id stock_value_basis allrows); my %column_defs = ( 'warehousedescription' => { 'text' => $locale->text('Warehouse'), },