X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fwh.pl;h=ab88983fae678357b7019aa04ae218ece205d1a8;hb=14562379bf33cf4b4388c6cf594ee8fc56ae3f87;hp=fb359085e940b04ed9c13aa63662878416b7f68d;hpb=34035b33f21af21316df798b19f2a758aa86b3a8;p=kivitendo-erp.git diff --git a/bin/mozilla/wh.pl b/bin/mozilla/wh.pl index fb359085e..ab88983fa 100644 --- a/bin/mozilla/wh.pl +++ b/bin/mozilla/wh.pl @@ -754,14 +754,14 @@ sub generate_journal { my $allrows = 0; $allrows = 1 if $form->{report_generator_output_format} ne 'HTML' ; - + # manual paginating my $pages = {}; $pages->{per_page} = $::form->{per_page} || 15; my $first_nr = ($page - 1) * $pages->{per_page}; my $last_nr = $first_nr + $pages->{per_page}; my $idx = 0; - + foreach my $entry (@contents) { $entry->{qty} = $form->format_amount_units('amount' => $entry->{qty}, 'part_unit' => $entry->{partunit}, @@ -977,7 +977,7 @@ sub generate_report { } if ( $allrows || ($idx >= $first_nr && $idx < $last_nr )) { - $report->add_data($row_set); + $report->add_data($row_set); } $idx++; }